r28260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28259‎ | r28260 | r28261 >
Date:00:04, 8 December 2007
Author:aaron
Status:old
Tags:
Comment:
Add more accessors
Modified paths:
  • /trunk/phase3/includes/filerepo/ArchivedFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ArchivedFile.php
@@ -160,15 +160,32 @@
161161 return $this->title;
162162 }
163163
 164+ /**
 165+ * Return the file name
 166+ */
 167+ public function getName() {
 168+ return $this->name;
 169+ }
 170+
164171 public function getID() {
165172 $this->load();
166173 return $this->id;
167174 }
168175
 176+ /**
 177+ * Return the FileStore key
 178+ */
169179 public function getKey() {
170180 $this->load();
171181 return $this->key;
172182 }
 183+
 184+ /**
 185+ * Return the FileStore storage group
 186+ */
 187+ public function getGroup() {
 188+ return $file->group;
 189+ }
173190
174191 /**
175192 * Return the width of the image
@@ -204,6 +221,15 @@
205222 }
206223
207224 /**
 225+ * Return the bits of the image file, in bytes
 226+ * @public
 227+ */
 228+ public function getBits() {
 229+ $this->load();
 230+ return $this->bits;
 231+ }
 232+
 233+ /**
208234 * Returns the mime type of the file.
209235 */
210236 public function getMimeType() {

Status & tagging log