/** * Initializes the options for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('paths' => array(dirname(__FILE__) . '/ui'))); parent::_initialize($config); $paths = KConfig::unbox($config->paths); array_unshift($paths, JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_locations/ui'); $config->paths = $paths; $this->_service = get_config_value('locations.service', 'google'); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array('paths' => array(dirname(__FILE__) . '/ui'))); parent::_initialize($config); }