예제 #1
0
파일: k2store.php 프로젝트: A-Bush/pprod
 function plgK2K2Store(&$subject, $params)
 {
     parent::__construct($subject, $params);
     //$this->loadLanguage( '', JPATH_ADMINISTRATOR );
     $lang = JFactory::getLanguage();
     $lang->load('com_k2store');
 }
예제 #2
0
 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);
 }
예제 #3
0
 function __construct(&$subject, $params)
 {
     parent::__construct($subject, $params);
 }
예제 #4
0
파일: tienda.php 프로젝트: annggeel/tienda
 function plgK2Tienda(&$subject, $config)
 {
     parent::__construct($subject, $config);
 }
예제 #5
0
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->pluginName = 'jw_sigpro';
     $this->loadLanguage();
 }
예제 #6
0
 function plgK2Qtc_k2(&$subject, $params)
 {
     parent::__construct($subject, $params);
 }
예제 #7
0
 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);
 }