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