Form_Field_HtmlDecorator_Model Class Reference

This class solves the issue of being able to inject HTML between form elements, while still being able to do a simple `$form->get_view()` and rely on the standard view rendering the form as you'd like to. More...

Inheritance diagram for Form_Field_HtmlDecorator_Model:
Form_Field_Model

Public Member Functions

 __construct ($html)
 get_html ()
 get_type ()
 process_data (array $raw_data, Form_Result_Model $result)

Detailed Description

This class solves the issue of being able to inject HTML between form elements, while still being able to do a simple `$form->get_view()` and rely on the standard view rendering the form as you'd like to.

In contrast, had this class not existed, you would need to create custom form views for every form that wants to inject a piece of text between form elements.


Constructor & Destructor Documentation

Form_Field_HtmlDecorator_Model::__construct ( html  ) 
Parameters:
$html string The HTML to inject

Member Function Documentation

Form_Field_HtmlDecorator_Model::get_html (  ) 
Returns:
string
Form_Field_HtmlDecorator_Model::get_type (  ) 
Returns:
string

Reimplemented from Form_Field_Model.

Form_Field_HtmlDecorator_Model::process_data ( array $  raw_data,
Form_Result_Model result 
)
Parameters:
$raw_data array
$result Form_Result_Model

Reimplemented from Form_Field_Model.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1