Index: trunk/phase3/includes/filerepo/ArchivedFile.php |
— | — | @@ -48,6 +48,7 @@ |
49 | 49 | $this->timestamp = NULL; |
50 | 50 | $this->deleted = 0; |
51 | 51 | $this->dataLoaded = false; |
| 52 | + $this->exists = false; |
52 | 53 | |
53 | 54 | if( is_object($title) ) { |
54 | 55 | $this->title = $title; |
— | — | @@ -142,6 +143,7 @@ |
143 | 144 | return; |
144 | 145 | } |
145 | 146 | $this->dataLoaded = true; |
| 147 | + $this->exists = true; |
146 | 148 | |
147 | 149 | return true; |
148 | 150 | } |
— | — | @@ -193,6 +195,11 @@ |
194 | 196 | $this->load(); |
195 | 197 | return $this->id; |
196 | 198 | } |
| 199 | + |
| 200 | + public function exists() { |
| 201 | + $this->load(); |
| 202 | + return $this->exists; |
| 203 | + } |
197 | 204 | |
198 | 205 | /** |
199 | 206 | * Return the FileStore key |