MediaWiki
REL1_22
|
00001 <?php 00028 class FileRepoStatus extends Status { 00036 static function newFatal( $repo /*, parameters...*/ ) { 00037 $params = array_slice( func_get_args(), 1 ); 00038 $result = new self( $repo ); 00039 call_user_func_array( array( &$result, 'error' ), $params ); 00040 $result->ok = false; 00041 return $result; 00042 } 00043 00049 static function newGood( $repo = false, $value = null ) { 00050 $result = new self( $repo ); 00051 $result->value = $value; 00052 return $result; 00053 } 00054 00058 function __construct( $repo = false ) { 00059 if ( $repo ) { 00060 $this->cleanCallback = $repo->getErrorCleanupFunction(); 00061 } 00062 } 00063 }