Index: trunk/phase3/includes/filerepo/ArchivedFile.php |
— | — | @@ -160,15 +160,32 @@ |
161 | 161 | return $this->title; |
162 | 162 | } |
163 | 163 | |
| 164 | + /** |
| 165 | + * Return the file name |
| 166 | + */ |
| 167 | + public function getName() { |
| 168 | + return $this->name; |
| 169 | + } |
| 170 | + |
164 | 171 | public function getID() { |
165 | 172 | $this->load(); |
166 | 173 | return $this->id; |
167 | 174 | } |
168 | 175 | |
| 176 | + /** |
| 177 | + * Return the FileStore key |
| 178 | + */ |
169 | 179 | public function getKey() { |
170 | 180 | $this->load(); |
171 | 181 | return $this->key; |
172 | 182 | } |
| 183 | + |
| 184 | + /** |
| 185 | + * Return the FileStore storage group |
| 186 | + */ |
| 187 | + public function getGroup() { |
| 188 | + return $file->group; |
| 189 | + } |
173 | 190 | |
174 | 191 | /** |
175 | 192 | * Return the width of the image |
— | — | @@ -204,6 +221,15 @@ |
205 | 222 | } |
206 | 223 | |
207 | 224 | /** |
| 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 | + /** |
208 | 234 | * Returns the mime type of the file. |
209 | 235 | */ |
210 | 236 | public function getMimeType() { |