/** * Constructor * * @since 3.1 */ public function __construct() { parent::__construct(); // Load com_tags config $this->comParams = JComponentHelper::getParams('com_tags'); }
public function __construct($form = null) { parent::__construct($form); $this->com_name = basename(realpath(dirname(__FILE__) . "/../..")); $this->ext_name = substr($this->com_name, 4); $this->document = JFactory::getDocument(); if (!isset($GLOBALS[$this->ext_name . "_fields_js_loaded"])) { $this->document->addStyleSheet(JUri::base(true) . '/components/' . $this->com_name . "/models/fields/fields.css"); $GLOBALS[$this->ext_name . "_fields_js_loaded"] = true; } }
public function __construct($form = null) { parent::__construct($form); require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'param.php'; $idTemplate = JRequest::getInt('id', 0); $paramT = AvatarParam::template($idTemplate); if (isset($paramT->google_font_api_key)) { $this->_apiKey = $paramT->google_font_api_key; } //$this->getGoogleFont(); }
public function __construct($form = null) { parent::__construct($form); static $resources = true; if ($resources) { $resources = false; $this->com_name = basename(realpath(dirname(__FILE__) . "/../..")); $this->document = JFactory::getDocument(); $type = strtolower($this->type); if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $this->com_name . "/js/" . $type . ".js")) { $this->document->addScript(JUri::base(true) . "/components/" . $this->com_name . "/js/" . $type . ".js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $this->com_name . "/css/" . $type . ".css")) { $this->document->addStyleSheet(JUri::base(true) . "/components/" . $this->com_name . "/css/" . $type . ".css"); } } }
public function __construct($form = null) { parent::__construct($form); JFactory::getDocument()->addScriptDeclaration("jQuery(document).ready(function(){" . "jQuery('a.removeline').click(function(){" . "jQuery(this).closest('tr').remove();" . "})" . "});"); }
public function __construct($form = null) { parent::__construct($form); $this->container = RokCommon_Service::getContainer(); }
public function __construct($form = null) { include_once JPATH_BASE . '/components/com_eventgallery/version.php'; JLoader::registerPrefix('Eventgallery', JPATH_SITE . '/components/com_eventgallery'); parent::__construct(); }
public function __construct($form = null) { parent::__construct($form); }