/**
  * Parse the template file and return it as string
  * @param array
  * @return string
  */
 public function parse($arrAttributes = null)
 {
     if ($this->formcontrol_template) {
         $this->strTemplate = $this->formcontrol_template;
     }
     return parent::parse($arrAttributes);
 }
 protected function get_options_fields(FormFieldset $fieldset)
 {
     $fieldset->add_field(new FormFieldRichTextEditor('description', $this->common_lang['form.description'], $this->get_category()->get_description()));
     $fieldset->add_field(new FormFieldUploadPictureFile('image', $this->common_lang['form.picture'], $this->get_category()->get_image()->relative()));
 }
Пример #3
0
 /**
  * @desc Adds fieldset in the form
  * @param FormFieldset The fieldset to add
  */
 public function add_fieldset(FormFieldset $fieldset)
 {
     $fieldset->set_form_id($this->html_id);
     $this->fieldsets[] = $fieldset;
 }