本文整理汇总了PHP中ComDefaultViewHtml::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ComDefaultViewHtml::__construct方法的具体用法?PHP ComDefaultViewHtml::__construct怎么用?PHP ComDefaultViewHtml::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ComDefaultViewHtml
的用法示例。
在下文中一共展示了ComDefaultViewHtml::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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')));
}
示例2: __construct
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);
}
示例3: __construct
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;
}
}
示例4: __construct
public function __construct(KConfig $config)
{
// @TODO remove when upgrading, this should not be necessary
$config->auto_assign = true;
parent::__construct($config);
}
示例5: __construct
public function __construct(KConfig $config)
{
$config->views = array('targets' => JText::_('Targets'), 'controllers' => JText::_('Controllers'));
parent::__construct($config);
}
示例6: __construct
public function __construct(KConfig $config)
{
parent::__construct($config);
$this->getTemplate()->getFilter('alias')->append(array('@text(' => '$this->getView()->translate('));
}
示例7: __construct
public function __construct(KConfig $config)
{
parent::__construct($config);
$this->getTemplate()->getFilter('alias')->append(array('@date(' => '$this->getView()->friendlyDate(', '@timeago(' => '$this->getView()->timeAgo('));
}