function plgK2K2Store(&$subject, $params) { parent::__construct($subject, $params); //$this->loadLanguage( '', JPATH_ADMINISTRATOR ); $lang = JFactory::getLanguage(); $lang->load('com_k2store'); }
function plgK2K2mart(&$subject, $config) { //Check if Virtuemart is installed jimport('joomla.filesystem.file'); if (!JFile::exists(JPATH_SITE . DS . 'components' . DS . 'com_virtuemart' . DS . 'virtuemart.php')) { return false; } //Load required classes jimport('joomla.application.component.model'); require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php'; $this->vmConfig = VmConfig::loadConfig(); JModel::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models'); JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'virtuemart' . DS . 'tables'); //Load language files JPlugin::loadLanguage('plg_k2_k2mart', JPATH_ADMINISTRATOR); JPlugin::loadLanguage('com_virtuemart'); //Class variables $this->pluginName = 'k2mart'; $this->pluginNameHumanReadable = '<img alt="K2mart" src="' . JURI::base(true) . '/modules/mod_k2mart/tmpl/images/k2mart_logo_75x18.png" />'; //Constructor call parent::__construct($subject, $config); }
function __construct(&$subject, $params) { parent::__construct($subject, $params); }
function plgK2Tienda(&$subject, $config) { parent::__construct($subject, $config); }
public function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->pluginName = 'jw_sigpro'; $this->loadLanguage(); }
function plgK2Qtc_k2(&$subject, $params) { parent::__construct($subject, $params); }
public function plgK2Disqus_K2(&$subject, $params) { parent::__construct($subject, $params); $mode = $this->params->def('mode', 1); JPlugin::loadLanguage('plg_k2_disqus_k2'); }
function plgK2Example(&$subject, $params) { parent::__construct($subject, $params); }