コード例 #1
0
ファイル: Status.php プロジェクト: MediaWiki-stable/1.26.1
 /**
  * Backwards compatibility logic
  *
  * @param string $name
  */
 function __get($name)
 {
     if ($name === 'ok') {
         return $this->sv->isOK();
     } elseif ($name === 'errors') {
         return $this->sv->getErrors();
     }
     throw new Exception("Cannot get '{$name}' property.");
 }
コード例 #2
0
ファイル: FileBackendTest.php プロジェクト: paladox/mediawiki
 function assertGoodStatus(StatusValue $status, $msg)
 {
     $this->assertEquals(print_r([], 1), print_r($status->getErrors(), 1), $msg);
 }