public function afterFind() { if ($this->version == '') { $this->version = 'Development'; } $this->installed = true; return parent::afterFind(); }
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))); }