/** * 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( 'menubar' => null, )); parent::_initialize($config); }
/** * Construct method, add a session if options are passed * * @author Stian Didriksen <*****@*****.**> * @param $config KConfig */ public function __construct(KConfig $config) { parent::__construct($config); $config = (object) $config; if (isset($config->retry)) { $this->retry = $config->retry; } }
/** * Search the mixin method map and call the method or trigger an error * * This function check to see if the method exists in the mixing map if not * it will call the 'splitview' function. The method name will become the 'name' * in the config array. * * This can be used to auto-magically create select filters based on the * function name. * * @param string The function name * @param array The function arguments * @throws BadMethodCallException If method could not be found * @return mixed The result of the function */ public function __call($method, array $arguments) { if (!in_array($method, $this->getMethods())) { $config = $arguments[0]; $config['name'] = strtolower($method); return $this->_splitview($config); } return parent::__call($method, $arguments); }
/** * 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) { $path[] = dirname(__FILE__) . '/ui'; $config->append(array('paths' => $path)); if (!$config->template) { $template = $this->getService('com://site/base.template.default'); $template->addFilter('alias')->addFilter('shorttag'); $config->append(array('template' => $template)); } parent::_initialize($config); $paths = KConfig::unbox($config->paths); array_unshift($paths, JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_base/ui'); $config->paths = $paths; }
/** * Constructor. * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { parent::__construct($config); $this->_html = $this->getService('com:base.template.helper.html'); }
/** * 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(JPATH_ROOT . '/components/com_stories/templates/stories', JPATH_ROOT . '/components/com_actors/templates/stories'), 'filters' => array('alias', 'shorttag'), 'alias' => array('@escape(' => 'htmlspecialchars(', '@route(' => 'JRoute::_(', '@name(' => '$this->renderHelper(\'com://site/actors.template.helper.story.names\',', '@possessive(' => '$this->renderHelper(\'com://site/stories.template.helper.story.possessiveNoune\',$story,', '@link(' => '$this->renderHelper(\'com://site/actors.template.helper.story.link\','))); parent::_initialize($config); }
/** * Initializes the default configuration for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('cache_file' => JPATH_CACHE . '/' . basename($this->_file) . '.' . md5($this->_file))); parent::_initialize($config); }
public function __construct(KObjectConfig $config) { parent::__construct($config); $this->setRouter(array($this, '_route')); }
/** * Constructor. * * @param KConfig $config An optional KConfig object with configuration options. */ public function __construct(KConfig $config) { parent::__construct($config); $this->_params = $this->_template->getView()->getParams(); }
/** * Constructor. * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config = null) { parent::__construct($config); //Reset the array of loaded scripts $this->_loaded = array(); }
/** * Constructor. * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { parent::__construct($config); //load the com_Anahita_SocialCore language for the date related string $this->_current_time = AnDomainAttributeDate::getInstance(); }
/** * Constructor * * @param array An optional associative array of configuration settings. */ public function __construct(KConfig $config) { parent::__construct($config); KFactory::get('admin::com.ninja.helper.default')->js('/raphael.js'); KFactory::get('admin::com.ninja.helper.default')->js('/g.raphael.js'); }