コード例 #1
0
ファイル: Test_ObjLocker.php プロジェクト: sziszu/pefi
 function __construct()
 {
     parent::__construct();
     $this->dblocker = new DbTableRecordLock($this->table, 1);
     $rec = array('obj' => 'test', 'record' => 3, 'csrf' => 'barmi', 'started' => time(), 'user' => 0);
     $this->table->save($rec);
 }
コード例 #2
0
ファイル: Test_UriMap.php プロジェクト: sziszu/pefi
 function __construct()
 {
     // db class
     $rc = new ReflectionClass('DbUriMap');
     $this->tableSQL = str_replace(array('/', '*'), '', $rc->getDocComment());
     parent::__construct();
     $this->map = new DbUriMap(array('table' => $this->table, 'mainLang' => 'en'));
 }
コード例 #3
0
ファイル: Test_Text.php プロジェクト: sziszu/pefi
 function __construct()
 {
     $rc = new ReflectionClass('SqlDBTexts');
     $this->tableSQL = $rc->getDocComment();
     $this->tableSQL = str_replace('/', '', $this->tableSQL);
     $this->tableSQL = str_replace('*', '', $this->tableSQL);
     parent::__construct();
     $this->texts = new SqlDBTexts($this->table);
 }