Пример #1
0
class MapController extends Budpar_Controller_Common
{
    /**
     * IS: -
     * FS: -
     * Desc: Fungsi inisialisasi
     */
    public function init()
    {
        parent::init();
    }
    /**
     * IS: Parameter id terdeklarasi
     * FS: Mengirimkan ke viewer: pageTitle, mapLocationForm, mapDestForm, poi,
     *     categoriesParent
     * Desc: Fungsi untuk menampilkan peta
     */
    public function indexAction()
    {
        $this->_helper->layout->setLayout('kebudayaan');
        // Param
        if ($this->_hasParam('id')) {
            $this->view->id = $this->_getParam('id');
            //echo $this->view->id . ' tes';
        }
        // Form
        $mapLocationForm = new Form_MapLocationForm();
        $mapDestForm = new Form_MapDestForm();
        $mapCategoryForm = new Form_MapCategoryForm();
Пример #2
0
 public function getAllForMap()
 {
     $destDescDb = new Model_DbTable_DestinationDescription();
     $destination = $destDescDb->getAllForMap($this->_languageId);
     $poiInfo = array();
     $poiCategories = array();
     foreach ($destination as $row) {
         $poiInfo[$row['poi_id']] = array();
         $poiInfo[$row['poi_id']]['descname'] = $row['descname'];
         $poiInfo[$row['poi_id']]['x'] = $row['pointX'];
         $poiInfo[$row['poi_id']]['y'] = $row['pointY'];
         $poiInfo[$row['poi_id']]['des'] = $this->_getContentBox($row);
         if ($row['category_id']) {
             $poiCategories[$row['poi_id']] = $row['category_id'];
         }
     }
     $this->_poiInfo = $poiInfo;
     $this->_poiCategories = $poiCategories;
 }