コード例 #1
0
ファイル: html.php プロジェクト: raeldc/com_learn
	/**
     * Initializes the config for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param 	object 	An optional KConfig object with configuration options
     * @return  void
     */
    protected function _initialize(KConfig $config)
    {
    	$config->append(array(
			'mimetype'	  		=> 'text/html',
    		'template_filters'	=> array('form'),
       	));
    	
    	parent::_initialize($config);
    }
コード例 #2
0
ファイル: rss.php プロジェクト: daodaoliang/nooku-framework
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KObjectConfig $config	An optional KObject object with configuration options
  * @return  void
  */
 protected function _initialize(KObjectConfig $config)
 {
     $config->append(array('mimetype' => 'application/rss+xml', 'data' => array('update_period' => 'hourly', 'update_frequency' => 1)));
     parent::_initialize($config);
 }