Example #1
0
 public function __construct($d, $params = array())
 {
     $this->setTypeID($d['type_id']);
     $this->setType($d['type_name']);
     $this->setCode($d['code']);
     $this->setLabel($d['label']);
     $this->setDescription($d['description']);
     $this->setParams($d['params']);
     $this->_setID($d['id']);
     if (isset($d['ex_plug_dir']) && !empty($d['ex_plug_dir'])) {
         $this->isExternal(true);
         $this->setExternalDir(utilsGmp::getExtModDir($d['ex_plug_dir']));
         $this->setExternalPath(utilsGmp::getExtModPath($d['ex_plug_dir']));
     }
 }