/**
  * IS: -
  * FS: -
  * Desc: Fungsi inisialisasi
  */
 public function init()
 {
     parent::init();
     switch ($this->_languageId) {
         case 1:
             $langLocale = 'en';
             break;
         case 2:
             $langLocale = 'id';
             break;
     }
     $this->view->languageID = $langLocale;
 }
 /**
  * IS: -
  * FS: -
  * Desc: Fungsi inisialisasi
  */
 public function init()
 {
     parent::init();
     switch ($this->_languageId) {
         case 1:
             $langLocale = 'en';
             break;
         case 2:
             $langLocale = 'id';
             break;
     }
     $this->view->languageID = $langLocale;
     // untuk mengenerate koordinate google map
     $destinationDb = new Model_DbTable_Destination();
     $destination = $destinationDb->getAllByIdLang($this->_getParam('destId'), $this->_languageId);
     $this->view->pointX = $destination['pointX'];
     $this->view->pointY = $destination['pointY'];
     //untuk menghitung page viewer
     $this->view->pageViewer = $this->countView($this->_getParam('destId'));
 }
 /**
  * IS: -
  * FS: Mengirimkan ke viewer: imageGallery, areaDb
  * Desc: Fungsi inisialisasi
  */
 public function init()
 {
     parent::init();
     if ($this->_hasParam('destId')) {
         $imageDb = new Model_DbTable_Image();
         $imageGallery = $imageDb->getAllImageGalleryByPoiId($this->_destId);
         $this->view->imageGallery = $imageGallery;
         $fileAttachmentDb = new Model_DbTable_FileAttachments();
         $fileAttachments = $fileAttachmentDb->getByPoiId($this->_destId);
         $this->view->fileAttachments = $fileAttachments;
     }
     // Model Area untuk generate lokasi destinasi
     // View
     switch ($this->_languageId) {
         case 1:
             $langLocale = 'id';
             break;
         case 2:
             $langLocale = 'en';
             break;
     }
     $this->view->languageID = $langLocale;
     $this->view->areaDb = new Model_DbTable_Area();
     if (isset($this->_destId)) {
         // untuk mengenerate koordinate google map
         $destinationDb = new Model_DbTable_Destination();
         $destination = $destinationDb->getAllByIdLang($this->_destId, $this->_languageId);
         $this->view->pointX = $destination['pointX'];
         $this->view->pointY = $destination['pointY'];
         //realated link
         $linkModel = new Model_DbTable_RelatedArticlePoi();
         $this->view->related_link = $linkModel->getByPoiId($this->_destId, $this->_languageId);
     }
     $this->view->destId = $this->_destId;
     // parse google map key api to viewer
     $this->view->map_api = Zend_Registry::get('gmap_key2');
     $this->view->bigPageTitle = $this->view->translate('Culture');
     $this->view->bgClass = "yellow";
 }