Пример #1
0
 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();
 }
Пример #2
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();
 }
Пример #3
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();
 }