function __construct() { parent::__construct(); $this->setMainTableName('site'); $this->setValidatorRules(array('site_theme_id' => $this->formateValidatorRuleNum('site_theme的编号', false), 'site_type_id' => $this->formateValidatorRuleNum('site_type的编号', false), 'site_users_id' => $this->formateValidatorRuleNum('site_users的编号', false), 'domainName' => $this->formateValidatorRuleStr('域名', false, 1, 50, true), 'siteName' => $this->formateValidatorRuleStr('站点名称', false, 1, 20, true), 'seoKeyword' => $this->formateValidatorRuleStr('seo关键字', true, 1, 50, true), 'seoDescription' => $this->formateValidatorRuleStr('seo的描述', true, 1, 150, true), 'titlePrefix' => $this->formateValidatorRuleStr('页面标题前缀', true, 1, 50, true), 'icp' => $this->formateValidatorRuleStr('icp备案', false, 1, 50, true))); }
function __construct() { parent::__construct(); $this->setMainTableName('site_users'); $this->setValidatorRules(array('user' => $this->formateValidatorRuleStr('用户名', false, 1, 10, true), 'pwd' => $this->formateValidatorRuleStr('密码', false, 32, 32, true), 'fullName' => $this->formateValidatorRuleStr('真实姓名', false, 4, 10, true), 'sex' => $this->formateValidatorRuleNum('性别', false, 2, false), 'phone' => $this->formateValidatorRuleStr('电话', false, 5, 16, true), 'mail' => $this->formateValidatorRuleStr('电话', false, 5, 60, true), 'onoff' => $this->formateValidatorRuleNum('是否开启', true))); }
function __construct() { parent::__construct(); $this->setValidatorRules(array('user' => $this->formateValidatorRuleStr('用户名', false, 1, 10, true), 'pwd' => $this->formateValidatorRuleStr('密码', false, 32, 32, true))); }