Jet\Factory_Form
Factory designed for forms system.
Method Overview
Method | Meaning of |
---|---|
public static getFieldClassName( string $type ) : string |
Returns the class name for the given form field type. |
public static setFieldClassName( string $type, string $class_name ) : string |
Sets the class name for a given form field type. |
public static getFieldInstance( string $type, string $name, string $label='' ) : Form_Field |
Creates an instance of a form field of the given type. |
public static getRegisteredFieldTypes( ) : array |
Returns a list of registered form field types. |
public static getRendererFormTagClassName( ) : string |
Returns the name of the renderer class used to display the form - more specifically the form tags themselves - not the fields. |
public static setRendererFormTagClassName( string $renderer_form_tag_class_name ) : void |
Sets the name of the renderer class used to display the form - more specifically the form tags themselves - not the fields. |
public static getRendererFormTagInstance( Form $form ) : Form_Renderer_Form |
Creates an instance of the renderer used to display the form - specifically the form tags themselves - not the fields. |
public static getRendererFormMessageClassName( ) : string |
Returns the class name of the renderer used to display the message. |
public static setRendererFormMessageClassName( string $renderer_form_message_class_name ) : void |
Returns the class name of the renderer used to display the message. |
public static getRendererFormMessageInstance( Form $form ) : Form_Renderer_Form_Message |
Creates an instance of the renderer used to display the form message. |
public static getRendererFieldClassName( string $field_type, string $element ) : string |
Returns the name of the renderer class of one of the form field view parts. |
public static setRendererFieldClassName( string $field_type, string $element, string $class_name ) : void |
Sets the name of the renderer class of one of the form field display sections. |
public static getRendererFieldInstance( Form_Field $field, string $element ) : Form_Renderer |
Creates an instance of the renderer of one of the form field view parts. |