コード例 #1
0
ファイル: module.php プロジェクト: VSVS/vs_wp_4.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(utilsBup::getExtModDir($d['ex_plug_dir']));
         $this->setExternalPath(utilsBup::getExtModPath($d['ex_plug_dir']));
     }
 }