Ejemplo n.º 1
0
 /** Store the form's values to this recipe.
  * @param RECIPE &$obj
  * @access private */
 function _store_to_object(&$obj)
 {
     $obj->originator = $this->value_as_text('originator');
     $obj->ingredients = $this->value_as_text('ingredients');
     $obj->instructions = $this->value_as_text('instructions');
     $obj->bullet_ingredients = $this->value_for('bullet_ingredients');
     $obj->number_instructions = $this->value_for('number_instructions');
     parent::_store_to_object($obj);
 }
Ejemplo n.º 2
0
 /**
  * @param FORM_RENDERER $renderer
  * @access private
  */
 protected function _draw_controls($renderer)
 {
     $renderer->inline_operations_enabled = true;
     $renderer->start_inline_preview_area();
     parent::_draw_controls($renderer);
     $renderer->finish_inline_preview_area($this->description_control_css_class);
 }