Пример #1
0
 public function afterFind()
 {
     if ($this->version == '') {
         $this->version = 'Development';
     }
     $this->installed = true;
     return parent::afterFind();
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->setValidatorRules(array('site_users_id' => $this->formateValidatorRuleNum('site_users的编号', false), 'site_id' => $this->formateValidatorRuleNum('site的编号', false), 'sortindex' => $this->formateValidatorRuleNum('排序', true), 'title' => $this->formateValidatorRuleStr('标题', false, 1, 50, true), 'c_id' => $this->formateValidatorRuleNum('上级分类编号', true)));
 }