From 157aa435afc0200cc64cedcbb04ee4a362de9dfa Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 8 Dec 2007 00:04:58 +0000 Subject: [PATCH] Add more accessors --- includes/filerepo/ArchivedFile.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/includes/filerepo/ArchivedFile.php b/includes/filerepo/ArchivedFile.php index 1dc71bc054..29dcbc8670 100644 --- a/includes/filerepo/ArchivedFile.php +++ b/includes/filerepo/ArchivedFile.php @@ -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. */ -- 2.20.1