Nooku_Components
[ class tree: Nooku_Components ] [ index: Nooku_Components ] [ all elements ]

Source for file html.php

Documentation is available at html.php

  1. <?php
  2. /**
  3.  * @version     $Id: default.php 2721 2010-10-27 00:58:51Z johanjanssens $
  4.  * @package     Nooku_Components
  5.  * @subpackage  Default
  6.  * @copyright   Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
  7.  * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
  8.  * @link        http://www.nooku.org
  9.  */
  10.  
  11. /**
  12.  * Default Html View
  13.  *
  14.  * @author      Johan Janssens <johan@nooku.org>
  15.  * @category    Nooku
  16.  * @package     Nooku_Components
  17.  * @subpackage  Default
  18.  */
  19. {
  20.     /**
  21.      * Constructor
  22.      *
  23.      * @param   object  An optional KConfig object with configuration options
  24.      */
  25.     public function __construct(KConfig $config)
  26.     {
  27.         parent::__construct($config);
  28.  
  29.         //Add alias filter for editor helper
  30.         $this->getTemplate()->getFilter('alias')->append(array(
  31.             '@editor(' => '$this->renderHelper(\'com://admin/default.template.helper.editor.display\', ')
  32.         );
  33.     }
  34.  
  35.     /**
  36.      * Initializes the configuration for the object
  37.      *
  38.      * Called from {@link __construct()} as a first step of object instantiation.
  39.      *
  40.      * @param   array   Configuration settings
  41.      */
  42.     protected function _initialize(KConfig $config)
  43.     {
  44.         $config->append(array(
  45.             'layout'           => KInflector::isSingular($this->getName()) 'form' 'default',
  46.             'template_filters' => array('module'),
  47.         ));
  48.  
  49.         parent::_initialize($config);
  50.     }
  51. }

Documentation generated on Sun, 19 May 2013 03:03:20 +0200 by phpDocumentor 1.4.3