/** * Create the helper object * * @return object The plugins helper object */ private function getHelper() { // Already initialized, so return if ($this->_init) { return $this->_helper; } $this->_init = true; // only in html if (JFactory::getDocument()->getType() != 'html' && JFactory::getDocument()->getType() != 'feed') { return false; } if (!$this->isFrameworkEnabled()) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/protect.php'; if (nnProtect::isAdmin()) { return false; } if (nnProtect::isProtectedPage($this->_alias)) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/helper.php'; $this->_helper = nnFrameworkHelper::getPluginHelper($this); return $this->_helper; }
/** * Create the helper object * * @return object The plugins helper object */ private function getHelper() { // Already initialized, so return if ($this->_init) { return $this->_helper; } $this->_init = true; if (!$this->isFrameworkEnabled()) { return false; } if (!JFile::exists(JPATH_ADMINISTRATOR . '/components/com_snippets/models/list.php')) { return; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/protect.php'; if (nnProtect::isAdmin()) { return false; } if (nnProtect::isProtectedPage($this->_alias, 1)) { return false; } // Load component parameters require_once JPATH_PLUGINS . '/system/nnframework/helpers/parameters.php'; $params = nnParameters::getInstance()->getComponentParams($this->_name); require_once JPATH_PLUGINS . '/system/nnframework/helpers/helper.php'; $this->_helper = nnFrameworkHelper::getPluginHelper($this, $params); return $this->_helper; }
/** * Create the helper object * * @return object The plugins helper object */ private function getHelper() { // Already initialized, so return if ($this->_init) { return $this->_helper; } $this->_init = true; if (!$this->isFrameworkEnabled()) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/protect.php'; if (nnProtect::isAdmin()) { return false; } if (nnProtect::isProtectedPage($this->_alias, 1)) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/helper.php'; $this->_helper = nnFrameworkHelper::getPluginHelper($this); return $this->_helper; }
/** * Create the helper object * * @return object The plugins helper object */ private function getHelper() { // Already initialized, so return if ($this->_init) { return $this->_helper; } $this->_init = true; if (!$this->isFrameworkEnabled()) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/protect.php'; if (!nnProtect::isSystemPluginInstalled($this->_alias)) { return false; } // Load plugin parameters require_once JPATH_PLUGINS . '/system/nnframework/helpers/parameters.php'; $parameters = nnParameters::getInstance(); $params = $parameters->getPluginParams($this->_name); require_once JPATH_PLUGINS . '/system/nnframework/helpers/helper.php'; $this->_helper = nnFrameworkHelper::getPluginHelper($this, $params); return $this->_helper; }
/** * Create the helper object * * @return object The plugins helper object */ private function getHelper() { // Already initialized, so return if ($this->_init) { return $this->_helper; } $this->_init = true; // only in html or raw (for ajax save order stuff) if (!in_array(JFactory::getDocument()->getType(), array('html', 'raw'))) { return false; } if (!$this->isFrameworkEnabled()) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/protect.php'; if (nnProtect::isProtectedPage($this->_alias)) { return false; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/helper.php'; $this->_helper = nnFrameworkHelper::getPluginHelper($this); return $this->_helper; }