public function addLoadScript($js, $order = self::DEFAULT_ORDER) { if (!empty($js)) { if (!$this->isPopulated()) { parent::addLoadScript($js, $order); } else { $this->document->addScriptDeclaration($js); } } }
public function __construct() { parent::__construct(); $this->document = JFactory::getDocument(); }
/** * */ public function __construct() { parent::__construct(); }