Add more accessors
This commit is contained in:
parent
f2b99c88e0
commit
157aa435af
1 changed files with 26 additions and 0 deletions
|
|
@ -160,15 +160,32 @@ class ArchivedFile
|
|||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the file name
|
||||
*/
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getID() {
|
||||
$this->load();
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the FileStore key
|
||||
*/
|
||||
public function getKey() {
|
||||
$this->load();
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the FileStore storage group
|
||||
*/
|
||||
public function getGroup() {
|
||||
return $file->group;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the width of the image
|
||||
|
|
@ -203,6 +220,15 @@ class ArchivedFile
|
|||
return $this->size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the bits of the image file, in bytes
|
||||
* @public
|
||||
*/
|
||||
public function getBits() {
|
||||
$this->load();
|
||||
return $this->bits;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the mime type of the file.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue