public function __construct($config) { //@TODO this is legacy, do not use this property in your views anymore $this->_document = KFactory::get('lib.joomla.document'); parent::__construct($config); $this->getTemplate()->addFilters(array(KFactory::get('admin::com.ninja.template.filter.document'))); }
public function __construct(KConfig $config) { parent::__construct($config); if (!$config->template_url) { $state = $this->getModel()->getState(); $config->template_url = KRequest::root() . ($state->application == 'admininistrator' ? '/administrator' : '') . '/templates'; } // Set base url used by things like template thumbnails $this->assign('templateurl', $config->template_url); }
public function __construct(KConfig $config) { parent::__construct($config); if ($config->editor_settings) { $this->_editor_settings = $config->editor_settings; } if (isset($config->codemirror)) { $this->codemirror = $config->codemirror; } if (isset($config->codemirrorOptions)) { $this->codemirrorOptions = $config->codemirrorOptions; } }
public function __construct(KConfig $config) { // @TODO remove when upgrading, this should not be necessary $config->auto_assign = true; parent::__construct($config); }
public function __construct(KConfig $config) { $config->views = array('targets' => JText::_('Targets'), 'controllers' => JText::_('Controllers')); parent::__construct($config); }
public function __construct(KConfig $config) { parent::__construct($config); $this->getTemplate()->getFilter('alias')->append(array('@text(' => '$this->getView()->translate(')); }
public function __construct(KConfig $config) { parent::__construct($config); $this->getTemplate()->getFilter('alias')->append(array('@date(' => '$this->getView()->friendlyDate(', '@timeago(' => '$this->getView()->timeAgo(')); }