/**
  * IS: -
  * FS: Mengirimkan ke viewer: staticType, menuType, foreign, customName
  * Desc: Fungsi untuk menampilkan informasi mengenai kedutaan besar negara2 lain
  *       di Indonesia. Foreign-Representative
  */
 public function foreignAction()
 {
     // Model
     $directoryDb = new Model_DbTable_Directory();
     // Data
     $foreignDirQuery = $directoryDb->getEmbassyOffice();
     // View
     $this->view->staticType = 'foreign';
     $this->view->menuType = 'travel';
     $this->view->foreign = parent::setPaginator($foreignDirQuery);
     // id_page_foreign = 'embassy(s)'
     $this->view->customName = $this->view->translate('id_page_foreign');
     // Render
     $this->render('foreign');
 }
 /**
  * IS: Parameter type, name, location terdeklarasi
  * FS: Mengirimkan ke viewer: customName, directory 
  * Desc: Fungsi untuk menampilkan list hasil pencarian
  */
 public function searchAction()
 {
     // Param
     $type = $this->_getParam('type');
     $name = $this->_getParam('name');
     $location = $this->_getParam('location');
     // Model
     $directoryDb = new Model_DbTable_Directory();
     $classDirDb = new Model_DbTable_ClassificationDirectory();
     // Data
     $directoryQuery = $directoryDb->getSearch($type, $name, $location);
     $classDir = $classDirDb->getAllForMenu();
     // View
     $this->view->customName = $classDir[$type] . '(s)';
     $this->view->directory = parent::setPaginator($directoryQuery);
 }