コード例 #1
0
ファイル: teamids.php プロジェクト: esorone/efcpw
 /**
  * Constructor
  *
  * @param   object  &$subject  The object to observe
  * @param   array   $config    An array that holds the plugin configuration
  *
  */
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     if ($this->params->get('sub_layout') and $this->params->get('sub_layout') != '_:default') {
         $this->sub_layout = str_replace('_:', '', $this->params->get('sub_layout'));
     }
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @param   object  &$subject  The object to observe
  * @param   array   $config    An array that holds the plugin configuration
  */
 public function __construct(&$subject, $config)
 {
     if ($this->bootFramework()) {
         $configuration = new KObjectConfig();
         $this->_initialize($configuration);
         foreach ($configuration as $key => $value) {
             $this->{$key} = KObjectConfig::unbox($value);
         }
     }
     parent::__construct($subject, $config);
     $this->loadLanguage();
 }
コード例 #3
0
 public function __construct(&$subject, $config)
 {
     // load ZOO config
     jimport('joomla.filesystem.file');
     if (!JFile::exists(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php') || !JComponentHelper::getComponent('com_zoo', true)->enabled) {
         return;
     }
     require_once JPATH_ADMINISTRATOR . '/components/com_zoo/config.php';
     // Get the ZOO App instance
     $this->app = App::getInstance('zoo');
     parent::__construct($subject, $config);
     // load zoo frontend language file
     $this->app->system->language->load('com_zoo');
 }
コード例 #4
0
ファイル: weblinks.php プロジェクト: vuchannguyen/hoctap
 /**
  * Constructor
  *
  * @param   object  &$subject  The object to observe
  * @param   array   $config    An array that holds the plugin configuration
  *
  * @since   2.5
  */
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage();
 }
コード例 #5
0
ファイル: jem.php プロジェクト: BillVGN/PortalPRP
	/**
	 * Constructor
	 *
	 * @param   object  &$subject  The object to observe
	 * @param   array   $config    An array that holds the plugin configuration
	 *
	 */
	public function __construct(&$subject, $config)
	{
		parent::__construct($subject, $config);
		$this->loadLanguage(); // we don't use $this->autoloadLanguage available since 3.1

		if (empty($this->jVer)) {
			$this->jVer = (!empty($this->indexer) && method_exists($this->indexer, 'index')) ? 3 : 2;
		}
	}
コード例 #6
0
 protected function getURL($id, $extension, $view)
 {
     return parent::getUrl($id, $extension, $view) . "#%";
 }