Example #1
0
 public function __construct($field, $smarty)
 {
     parent::__construct($field, $smarty);
     $tags = Jelly::query($this->_field->model)->select();
 }
Example #2
0
 protected function _get_fields()
 {
     if ((bool) $this->_group) {
         //convert model fields to form fields
         foreach ($this->_fields[$this->_group] as $key => $field) {
             $this->_fields[$this->_group][$key] = Jelly_Form_Field::factory($field, $this->_view->smarty());
         }
         $key = $this->_group;
         //clear current group
         $this->_group = null;
         return $this->_fields[$key];
     }
     if (!isset($this->_fields['jelly_form_fields'])) {
         return;
     }
     //convert model fields to form fields
     foreach ($this->_fields['jelly_form_fields'] as $key => $field) {
         $this->_fields['jelly_form_fields'][$key] = Jelly_Form_Field::factory($field, $this->_view->smarty());
     }
     return $this->_fields['jelly_form_fields'];
 }