Exemplo n.º 1
0
 protected function _init_headline()
 {
     $headline_class = 'Datasource_Section_' . ucfirst($this->type()) . '_Headline';
     if (!class_exists($headline_class)) {
         throw new Kohana_Exception('Headline class :class not found', array(':class' => $headline_class));
     }
     $this->_headline = new $headline_class();
     $this->_headline->set_section($this);
 }
Exemplo n.º 2
0
 protected function _serialize()
 {
     $vars = parent::_serialize();
     unset($vars['_fields']);
     return $vars;
 }