public function onAfterInitialise() { if (!defined('KOOWA')) { JError::raiseNotice('The Ext JS plugin requires the Koowa plugin to be installed and enabled. Make sure the Koowa plugin is listed first.'); return; } // Add our own html helpers KViewHelper::addIncludePath(dirname(__FILE__) . DS . 'extjs' . DS . 'helpers'); /** * plg_extjs is active */ define('EXTJS', 1); }
public function fetchElement($name, $value, &$node, $control_name) { $db = KFactory::get('lib.joomla.database'); KViewHelper::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_nooku' . DS . 'helpers'); return KViewHelper::_('nooku.select.languages', $value, $control_name . '[' . $name . ']', array('class' => 'inputbox', 'size' => '1'), null, false); }
/** * Adds to the stack of helper script paths in LIFO order. * * This function overrides the default view behavior and the path * to the KViewHelper include paths * * @param string|array The directory (-ies) to add. * @return object KViewAbstract */ public function addHelperPath($path) { KViewHelper::addIncludePath($path); return $this; }
/** * @version $Id: mod_language_select.php 964 2009-04-08 22:20:15Z johan $ * @category Nooku * @package Nooku_Site * @subpackage Module_Language_Select * @copyright Copyright (C) 2007 - 2009 Joomlatools. All rights reserved. * @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> * @link http://www.nooku.org */ // no direct access defined('_JEXEC') or die('Restricted access'); // Check if Koowa and Nooku plugins are active if (!(defined('KOOWA') && defined('NOOKU'))) { return; } KViewHelper::addIncludePath(dirname(__FILE__) . DS . 'helpers'); $app = KFactory::get('lib.joomla.application'); $uri = JURI::getInstance(); $model = KFactory::get('site::com.nooku.model.languages'); $nooku = KFactory::get('admin::com.nooku.model.nooku'); // Parameters $langformat = $params->get('langformat', 'name'); $style = $params->get('style', 'default'); $display_flag = $params->get('display_flag', 'both'); // Get data $langs = $model->getList(); // Get the view $view = KFactory::get('site::com.nooku.view.html'); $view->addTemplatePath(dirname(JModuleHelper::getLayoutPath('mod_language_select', $style))); // Assign vars $view->assign('langformat', $langformat);