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(); }
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(); }
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(); }