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); }
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')); }
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); }