Beispiel #1
0
 protected function _initialize()
 {
     $this->_options['levelMin'] = $this->_params->getInt('levelMin', CM_Model_Location::LEVEL_COUNTRY);
     $this->_options['levelMax'] = $this->_params->getInt('levelMax', CM_Model_Location::LEVEL_ZIP);
     if ($this->_params->has('fieldNameDistance') && $this->_params->get('fieldNameDistance')) {
         $this->_options['distanceName'] = $this->_params->getString('fieldNameDistance');
         $this->_options['distanceLevelMin'] = CM_Model_Location::LEVEL_CITY;
     }
     $this->_options['scopeLocation'] = $this->_params->has('scopeLocation') ? $this->_params->getLocation('scopeLocation') : null;
     parent::_initialize();
 }