function __construct($dispatcher, $config = array()) { // Avoid fatal errors due to component downgrade. // TODO: Remove when downgrades get disallowed on installers. if (version_compare($this->_getLogmanVersion(), '1.0.0RC4', '>=')) { $identifiers = array( 'com://admin/logman.plugin.interface', 'com://admin/logman.plugin.injector', 'com://admin/logman.plugin.abstract', 'com://admin/logman.plugin.context', 'com://admin/logman.plugin.content'); // Load LOGman base plugin classes. foreach ($identifiers as $identifier) { if (!$loaded = KLoader::loadIdentifier($identifier)) { break; } } // Load LOGman plugin group. if ($loaded) { JPluginHelper::importPlugin('logman'); } } parent::__construct($dispatcher, $config); }
/** * Constructor * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.5 */ function __construct(&$subject, $config) { parent::__construct($subject, $config); }
/** * Constructor */ function __construct($dispatcher, $config = array()) { parent::__construct($dispatcher, $config); $this->_packages = KService::get('repos://site/subscriptions.package')->getQuery()->disableChain()->fetchSet(); KService::get('anahita:domain.store.database')->addEventSubscriber($this); }
/** * Constructor * * @author Stian Didriksen <*****@*****.**> * @param $dispatcher * @param $config */ public function __construct($dispatcher, $config = array()) { parent::__construct($dispatcher, $config); $this->Username = $this->params->get('username'); $this->Password = $this->params->get('password'); }