Пример #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->_pkCache) {
         $this->cacheKey = sprintf(TXConfig::getConfig('pkCache'), substr(get_called_class(), 0, -3));
     }
 }
Пример #2
0
 /**
  * 删除数据
  * @return bool
  */
 public function delete()
 {
     return $this->DAO->delete($this);
 }
Пример #3
0
 /**
  *
  * @return string
  */
 public function __toLogger()
 {
     return ['DAO' => $this->DAO->getDAO(), 'conds' => $this->conds];
 }