%PDF- %PDF-
| Direktori : /home1/lightco1/www/lightingrepublic.com.au/administrator/components/com_default/views/ |
| Current File : //home1/lightco1/www/lightingrepublic.com.au/administrator/components/com_default/views/html.php |
<?php
/**
* @version $Id: default.php 2721 2010-10-27 00:58:51Z johanjanssens $
* @package Nooku_Components
* @subpackage Default
* @copyright Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.nooku.org
*/
/**
* Default Html View
*
* @author Johan Janssens <johan@nooku.org>
* @category Nooku
* @package Nooku_Components
* @subpackage Default
*/
class ComDefaultViewHtml extends KViewDefault
{
/**
* Constructor
*
* @param object An optional KConfig object with configuration options
*/
public function __construct(KConfig $config)
{
parent::__construct($config);
//Add alias filter for editor helper
$this->getTemplate()->getFilter('alias')->append(array(
'@editor(' => '$this->renderHelper(\'com://admin/default.template.helper.editor.display\', ')
);
}
/**
* Initializes the configuration for the object
*
* Called from {@link __construct()} as a first step of object instantiation.
*
* @param array Configuration settings
*/
protected function _initialize(KConfig $config)
{
$config->append(array(
'layout' => KInflector::isSingular($this->getName()) ? 'form' : 'default'
));
parent::_initialize($config);
}
}