예제 #1
0
 public function indexAction()
 {
     //get the list of installed and new modules
     $result = $this->getInstallerTable()->allModules();
     $allModules = array();
     foreach ($result as $dataArray) {
         $mod = new InstModule();
         $mod->exchangeArray($dataArray);
         array_push($allModules, $mod);
     }
     return new ViewModel(array('InstallersExisting' => $allModules, 'InstallersAll' => $allModules, 'listenerObject' => $this->listenerObject, 'dependencyObject' => $this->getInstallerTable()));
 }
예제 #2
0
 /**
  *Function To Get Saved Hooks For this Module
  */
 public function getActiveHooks($mod_id)
 {
     $all = array();
     $sql = "SELECT msh.*,ms.menu_name FROM modules_hooks_settings AS msh LEFT OUTER JOIN modules_settings AS ms ON\n                               obj_name=enabled_hooks AND ms.mod_id=msh.mod_id LEFT OUTER JOIN modules AS m ON msh.mod_id=m.mod_id \n\t\t\t\t\t\t\t\t\t\tWHERE fld_type = ? AND mod_active = ? AND msh.mod_id = ? ";
     $res = $this->applicationTable->sqlQuery($sql, array("3", "1", $mod_id));
     foreach ($res as $row) {
         $mod = new InstModule();
         $mod->exchangeArray($row);
         array_push($all, $mod);
     }
     return $all;
 }