protected function init($args)
 {
     parent::init($args);
     $this->dbParser = new MapDBDataParser();
     $this->dbParser->init($args);
     if ($this->dbParser->isStored() && $this->dbParser->getCategory()->getListItems()) {
         // make sure this category was populated before skipping
         $this->hasDBData = true;
     }
 }
Esempio n. 2
0
 public function init($args)
 {
     $args['TITLE'] = '';
     // set BASE_URL first so parent doesn't complain
     $this->isPlaces = Kurogo::getOptionalSiteVar('USE_GOOGLE_PLACES', false, 'maps');
     if ($this->isPlaces) {
         $args['BASE_URL'] = self::PLACES_BASE_URL;
         $this->apiKey = Kurogo::getSiteVar('GOOGLE_PLACES_API_KEY', 'maps');
     } else {
         $args['BASE_URL'] = self::GEOCODE_BASE_URL;
         // the Google Maps license requires that geocode results
         // be displayed with a Google Map
         $this->staticMapClass = 'GoogleStaticMap';
         $this->dynamicMapClass = 'GoogleJSMap';
     }
     $this->defaultCenter = Kurogo::getSiteVar('DEFAULT_CENTER', 'maps');
     // TODO: grab the following from config
     //   default lat/lon, radius
     parent::init($args);
 }
 protected function init($args) {
     parent::init($args);
     $this->addFilter('f', 'json');
 }