r57144 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57143‎ | r57144 | r57145 >
Date:19:35, 30 September 2009
Author:aaron
Status:ok
Tags:
Comment:
Added exists() function
Modified paths:
  • /trunk/phase3/includes/filerepo/ArchivedFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ArchivedFile.php
@@ -48,6 +48,7 @@
4949 $this->timestamp = NULL;
5050 $this->deleted = 0;
5151 $this->dataLoaded = false;
 52+ $this->exists = false;
5253
5354 if( is_object($title) ) {
5455 $this->title = $title;
@@ -142,6 +143,7 @@
143144 return;
144145 }
145146 $this->dataLoaded = true;
 147+ $this->exists = true;
146148
147149 return true;
148150 }
@@ -193,6 +195,11 @@
194196 $this->load();
195197 return $this->id;
196198 }
 199+
 200+ public function exists() {
 201+ $this->load();
 202+ return $this->exists;
 203+ }
197204
198205 /**
199206 * Return the FileStore key

Status & tagging log