setForceMaster 設定要不要強制從 master 抓資料。
public static setForceMaster ( mixed $enable ) : void | ||
$enable | mixed | |
리턴 | void |
/** * 測試 ForceMaster 參數的設定和取得 */ public function testSetForceMaster() { Pix_Table::setForceMaster(1); $this->assertEquals(Pix_Table::getForceMaster(), 1); Pix_Table::setForceMaster(0); $this->assertEquals(Pix_Table::getForceMaster(), 0); }