/** * 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; } }
/** * Constructor. * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { parent::__construct($config); $identfier = clone $this->getIdentifier(); $identfier->path = array('template'); $identfier->name = 'parser'; register_default(array('identifier' => $identfier, 'default' => 'ComBaseTemplateDefault')); $this->_template = $this->getService($identfier); foreach ($config->filters as $filter) { $this->_template->addFilter($filter); } $this->_template->getFilter('alias')->append(KConfig::unbox($config->alias)); JFactory::getLanguage()->load('com_stories'); $this->_template->addSearchPath(KConfig::unbox($config->paths), true); }
/** * Constructor. * * @param KConfig $config An optional KConfig object with configuration options. */ public function __construct(KConfig $config) { $this->_file = $config->file; parent::__construct($config); $this->_cache_file = $config->cache_file; if (is_readable($this->_cache_file)) { $this->_cache_data = unserialize(file_get_contents($this->_cache_file)); } if (!is_array($this->_cache_data)) { $this->_cache_data = array(); } if (!isset($this->_cache_data['timestamp'])) { $this->_cache_data = array('timetamp' => time()); } }
/** * 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'); }
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) { parent::__construct($config); $this->_template->addSearchPath(KConfig::unbox($config->paths), true); }
/** * 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'); }