示例#1
0
 protected function init()
 {
     $this->columns['username']['unique'] = true;
     $this->columns['username']['required'] = true;
     $this->columns['password']['required'] = true;
     return parent::init();
 }
示例#2
0
 protected function init()
 {
     $this->columns['model_id']['required'] = true;
     $this->columns['model_type_id']['required'] = true;
     $this->columns['category_id']['required'] = \GO\Comments\CommentsModule::commentsRequired();
     return parent::init();
 }
示例#3
0
 protected function init()
 {
     $this->columns['text']['gotype'] = 'html';
     $this->columns['time']['gotype'] = 'unixtimestamp';
     $this->columns['vtime']['gotype'] = 'unixtimestamp';
     parent::init();
 }
示例#4
0
文件: Alias.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['address']['unique'] = true;
     $this->columns['address']['required'] = true;
     $this->columns['goto']['gotype'] = 'textfield';
     $this->columns['goto']['required'] = true;
     return parent::init();
 }
示例#5
0
 protected function init()
 {
     $this->columns['content']['required'] = true;
     //		$this->addDefaultTag('contact:salutation', \GO::t('default_salutation_unknown'));
     $this->addDefaultTag('salutation', \GO::t('default_salutation_unknown'));
     $this->addDefaultTag('date', \GO\Base\Util\Date::get_timestamp(time(), false));
     return parent::init();
 }
示例#6
0
 protected function init()
 {
     $this->columns['name']['unique'] = true;
     $this->columns['nextrun']['gotype'] = 'unixtimestamp';
     $this->columns['lastrun']['gotype'] = 'unixtimestamp';
     $this->columns['completedat']['gotype'] = 'unixtimestamp';
     return parent::init();
 }
示例#7
0
文件: Domain.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['domain']['unique'] = true;
     $this->columns['total_quota']['gotype'] = 'number';
     $this->columns['default_quota']['gotype'] = 'number';
     $this->columns['max_aliases']['gotype'] = 'number';
     $this->columns['max_mailboxes']['gotype'] = 'number';
     return parent::init();
 }
示例#8
0
文件: Field.php 项目: ajaboa/crmpuan
 protected function init()
 {
     //		$this->columns['max']['gotype']='number';
     //		$this->columns['height']['gotype']='number';
     $this->columns['name']['required'] = true;
     $this->columns['max_length']['gotype'] = 'number';
     $this->columns['max_length']['decimals'] = 0;
     parent::init();
 }
示例#9
0
文件: Task.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['name']['required'] = true;
     $this->columns['tasklist_id']['required'] = true;
     $this->columns['start_time']['gotype'] = 'unixdate';
     $this->columns['due_time']['gotype'] = 'unixdate';
     $this->columns['due_time']['greaterorequal'] = 'start_time';
     $this->columns['completion_time']['gotype'] = 'unixdate';
     $this->columns['repeat_end_time']['gotype'] = 'unixdate';
     $this->columns['reminder']['gotype'] = 'unixtimestamp';
     parent::init();
 }
示例#10
0
 protected function init()
 {
     $this->_load();
     return parent::init();
 }
示例#11
0
 protected function init()
 {
     $this->columns['data']['gotype'] = 'html';
     return parent::init();
 }
示例#12
0
 protected function init()
 {
     $this->columns['slug']['unique'] = array('site_id');
     parent::init();
 }
示例#13
0
 protected function init()
 {
     $this->columns['content']['gotype'] = 'text';
     return parent::init();
 }
示例#14
0
文件: Block.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['name']['required'] = true;
     $this->columns['field_id']['required'] = true;
     parent::init();
 }
示例#15
0
文件: User.php 项目: ajaboa/crmpuan
 public function init()
 {
     $this->columns['email']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     $this->columns['email']['required'] = true;
     $this->columns['password']['required'] = true;
     $this->columns['username']['required'] = true;
     $this->columns['username']['regex'] = '/^[A-Za-z0-9_\\-\\.\\@]*$/';
     $this->columns['first_name']['required'] = true;
     $this->columns['last_name']['required'] = true;
     $this->columns['timezone']['required'] = true;
     $this->columns['lastlogin']['gotype'] = 'unixtimestamp';
     $this->columns['disk_quota']['gotype'] = 'number';
     $this->columns['disk_quota']['decimals'] = 0;
     return parent::init();
 }
 public function init()
 {
     //$className = $this->className();
     $this->_getAllFields();
     return parent::init();
 }
示例#17
0
 protected function init()
 {
     parent::init();
     $this->columns['time']['required'] = true;
 }
示例#18
0
 protected function init()
 {
     $this->columns['content']['gotype'] = 'html';
     $this->columns['due_time']['gotype'] = 'unixdate';
     return parent::init();
 }
示例#19
0
文件: Note.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['name']['required'] = true;
     $this->columns['category_id']['required'] = true;
     return parent::init();
 }
示例#20
0
 protected function init()
 {
     $this->columns['addressbook_id']['required'] = true;
     $this->columns['email']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     $this->columns['invoice_email']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     //
     //		$this->columns['phone']['gotype']='phone';
     //		$this->columns['fax']['gotype']='phone';
     return parent::init();
 }
示例#21
0
文件: File.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['expire_time']['gotype'] = 'unixdate';
     $this->columns['name']['required'] = true;
     parent::init();
 }
示例#22
0
文件: Acl.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['user_id']['required'] = true;
     $this->columns['description']['required'] = true;
     return parent::init();
 }
示例#23
0
 protected function init()
 {
     $this->columns['host']['required'] = true;
     $this->columns['username']['required'] = true;
     $this->columns['password']['required'] = true;
     parent::init();
 }
示例#24
0
文件: Group.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['name']['unique'] = true;
     return parent::init();
 }
示例#25
0
文件: Event.php 项目: ajaboa/crmpuan
 protected function init()
 {
     $this->columns['calendar_id']['required'] = true;
     $this->columns['start_time']['gotype'] = 'unixtimestamp';
     $this->columns['end_time']['greater'] = 'start_time';
     $this->columns['end_time']['gotype'] = 'unixtimestamp';
     $this->columns['repeat_end_time']['gotype'] = 'unixtimestamp';
     $this->columns['repeat_end_time']['greater'] = 'start_time';
     //$this->columns['category_id']['required'] = \GO\Calendar\CalendarModule::commentsRequired();
     parent::init();
 }
示例#26
0
 protected function init()
 {
     $this->columns['name']['unique'] = array("user_id");
     return parent::init();
 }
示例#27
0
文件: Log.php 项目: ajaboa/crmpuan
 protected function init()
 {
     //$this->columns['time']='unixtimestamp';
     return parent::init();
 }
示例#28
0
 protected function init()
 {
     $this->columns["income"]["gotype"] = "number";
     return parent::init();
 }
示例#29
0
 protected function init()
 {
     $this->columns['addressbook_id']['required'] = true;
     $this->columns['email']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     $this->columns['email2']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     $this->columns['email3']['regex'] = \GO\Base\Util\String::get_email_validation_regex();
     //		$this->columns['home_phone']['gotype']='phone';
     //		$this->columns['work_phone']['gotype']='phone';
     //		$this->columns['cellular']['gotype']='phone';
     //		$this->columns['cellular2']['gotype']='phone';
     //		$this->columns['fax']['gotype']='phone';
     //		$this->columns['work_fax']['gotype']='phone';
     $this->columns['action_date']['gotype'] = 'unixtimestamp';
     return parent::init();
 }