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