MediaWiki  REL1_19
FileRepoStatus.php
Go to the documentation of this file.
00001 <?php
00013 class FileRepoStatus extends Status {
00021         static function newFatal( $repo /*, parameters...*/ ) {
00022                 $params = array_slice( func_get_args(), 1 );
00023                 $result = new self( $repo );
00024                 call_user_func_array( array( &$result, 'error' ), $params );
00025                 $result->ok = false;
00026                 return $result;
00027         }
00028 
00034         static function newGood( $repo = false, $value = null ) {
00035                 $result = new self( $repo );
00036                 $result->value = $value;
00037                 return $result;
00038         }
00039 
00043         function __construct( $repo = false ) {
00044                 if ( $repo ) {
00045                         $this->cleanCallback = $repo->getErrorCleanupFunction();
00046                 }
00047         }
00048 }