Exemple #1
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config	An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('layout' => 'rss', 'template' => 'rss', 'mimetype' => 'application/rss+xml', 'data' => array('update_period' => 'hourly', 'update_frequency' => 1)));
     parent::_initialize($config);
 }
Exemple #2
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   ObjectConfig $config Configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('mimetype' => 'text/html', 'template_filters' => array('form', 'include')));
     parent::_initialize($config);
 }
Exemple #3
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config	An optional Object object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('behaviors' => array('localizable', 'routable'), 'mimetype' => 'application/rss+xml', 'data' => array('update_period' => 'hourly', 'update_frequency' => 1)));
     parent::_initialize($config);
 }