1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31:
<?php
abstract class AbstractRichCategoriesFormController extends AbstractCategoriesFormController
{
protected function get_options_fields(FormFieldset $fieldset)
{
$fieldset->add_field(new FormFieldRichTextEditor('description', self::$common_lang['form.description'], $this->get_category()->get_description()));
$fieldset->add_field(new FormFieldUploadPictureFile('image', self::$common_lang['form.picture'], $this->get_category()->get_image()->relative()));
}
protected function set_properties()
{
parent::set_properties();
$this->get_category()->set_description($this->form->get_value('description'));
$this->get_category()->set_image(new Url($this->form->get_value('image')));
}
}
?>