コード例 #1
0
ファイル: Employee.php プロジェクト: sho5kubota/guidingyou2
 public function delete()
 {
     $ret = parent::delete();
     if (Module::isInstalled('agilemultipleseller')) {
         AgileSellerManager::disableSellerProducts($this->id);
         AgileSellerManager::deleteSellerInfo($this->id);
     }
     return $ret;
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
ファイル: Employee.php プロジェクト: paolobattistella/aphro
 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);
 }