public function __construct($id = null, $id_lang = null, $id_shop = null) { parent::__construct($id, $id_lang, $id_shop); //$this->def['fields']['email'] = array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'required' => false, 'size' => 128); //$this->def['fields']['passwd'] = array('type' => self::TYPE_STRING, 'validate' => 'isPasswdAdmin', 'required' => false, 'size' => 32); if (!empty($id)) { $this->id_shop_default = $this->associated_shops[0]; $this->fullName = $this->firstname . ' ' . $this->lastname; $this->text_color = Tools::getBrightness($this->bo_color) < 128 ? 'white' : '#383838'; $this->bg_color = $this->bo_color; } }
public function __construct($id = null, $id_lang = null, $id_shop = null) { parent::__construct($id, $id_lang, $id_shop); $this->def['fields']['email'] = array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'required' => false, 'size' => 128); $this->def['fields']['passwd'] = array('type' => self::TYPE_STRING, 'validate' => 'isPasswdAdmin', 'required' => false, 'size' => 32); }