function ProcessRequest() { $GtfwModule = new GtfwModule(); $this->aktif = $GtfwModule->aktif; if ($GtfwModule->aktif == 'bo') { $path_module = Configuration::Instance()->GetValue('application', 'docroot') . 'module/'; $AppId = Configuration::Instance()->GetValue('application', 'application_id'); } else { $path_module = str_replace("bo", "fo", Configuration::Instance()->GetValue('application', 'docroot')) . 'module/'; $AppId = Configuration::Instance()->GetValue('application', 'application_portal_id'); } $dir = dir($path_module); $i = 0; while (false !== ($entry = $dir->read())) { if ($entry != '..' && $entry != '.') { $path_submodule = $path_module . $entry . '/response/'; $j = 0; $jj = 0; if (file_exists($path_submodule)) { $dir2 = dir($path_submodule); while (false !== ($entry2 = $dir2->read())) { if ($entry2 != '..' && $entry2 != '.') { $Temp = $GtfwModule->PecahFile($entry2); $ActionList = array("Do", "View", "Popup", "Input", "Combo"); if (in_array($Temp['Action'], $ActionList)) { $j++; } $GetModule = $GtfwModule->GetModuleByFile($entry, $Temp['SubModuleName'], $Temp['Action'], $Temp['Type'], $AppId); if (sizeof($GetModule) > 0) { $jj++; } } } } $listFile[$i]['module'] = $entry; $listFile[$i]['jumlah_submodule'] = $j; $listFile[$i]['terdaftar'] = $jj; $listFile[$i]['belum_terdaftar'] = $j - $jj; $i++; } } $return['dataSheet'] = $listFile; return $return; }
function ShowDataAksi($sel = '') { $this->mrTemplate->clearTemplate("data_aksi_item"); $GtfwModule = new GtfwModule(); $dataAksi = $GtfwModule->GetDataAksi($sel); if ($dataAksi) { foreach ($dataAksi as $val) { $this->mrTemplate->AddVars('data_aksi_item', $val, ''); $this->mrTemplate->parseTemplate('data_aksi_item', 'a'); } } }