示例#1
0
 /**
  * @override
  */
 public function load($id, $field = null)
 {
     if (version_compare($this->tool()->db()->dbVersion(), '2.15.0', 'ge')) {
         return parent::load($id, $field);
     }
     return $this;
 }
示例#2
0
 protected function _beforeSave()
 {
     if (!$this->getDateAdded()) {
         $this->setCurrentDateAsAdded();
     }
     return $this;
     // no need to dispatch 'model_save_before'
     return parent::_beforeSave();
 }
示例#3
0
 /**
  * @return Aitoc_Aitsys_Model_Module_Status
  */
 protected function _afterSave()
 {
     $this->getCollection()->clearTable();
     return parent::_afterSave();
 }
示例#4
0
 public function __construct(Aitoc_Aitsys_Model_Module_License $license)
 {
     $this->_license = $license;
     parent::__construct();
     $this->reset();
 }