public
|
#
__construct( )
Public constructor. Determines the priority of this class and if it should be
enabled
Public constructor. Determines the priority of this class and if it should be
enabled
|
public
|
#
preRender( string $view, string $task, FOFInput $input, array $config = array() )
Echoes any HTML to show before the view template
Echoes any HTML to show before the view template
Parameters
- $view
string - $view The current view
- $task
string - $task The current task
- $input
FOFInput - $input The input array (request parameters)
- $config
array - $config The view configuration array
|
public
|
#
postRender( string $view, string $task, FOFInput $input, array $config = array() )
Echoes any HTML to show after the view template
Echoes any HTML to show after the view template
Parameters
- $view
string - $view The current view
- $task
string - $task The current task
- $input
FOFInput - $input The input array (request parameters)
- $config
array - $config The view configuration array
|
protected
string
|
#
renderFormBrowse( FOFForm & $form, FOFModel $model, FOFInput $input )
Renders a FOFForm for a Browse view and returns the corresponding HTML
Renders a FOFForm for a Browse view and returns the corresponding HTML
Parameters
- $form
FOFForm - &$form The form to render
- $model
FOFModel - $model The model providing our data
- $input
FOFInput - $input The input object
Returns
string - The HTML rendering of the form
|
protected
string
|
#
renderFormRead( FOFForm & $form, FOFModel $model, FOFInput $input )
Renders a FOFForm for a Read view and returns the corresponding HTML
Renders a FOFForm for a Read view and returns the corresponding HTML
Parameters
- $form
FOFForm - &$form The form to render
- $model
FOFModel - $model The model providing our data
- $input
FOFInput - $input The input object
Returns
string - The HTML rendering of the form
|
protected
string
|
#
renderFormEdit( FOFForm & $form, FOFModel $model, FOFInput $input )
Renders a FOFForm for an Edit view and returns the corresponding HTML
Renders a FOFForm for an Edit view and returns the corresponding HTML
Parameters
- $form
FOFForm - &$form The form to render
- $model
FOFModel - $model The model providing our data
- $input
FOFInput - $input The input object
Returns
string - The HTML rendering of the form
|
protected
string
|
#
renderFormRaw( FOFForm & $form, FOFModel $model, FOFInput $input, string $formType )
Renders a raw FOFForm and returns the corresponding HTML
Renders a raw FOFForm and returns the corresponding HTML
Parameters
- $form
FOFForm - &$form The form to render
- $model
FOFModel - $model The model providing our data
- $input
FOFInput - $input The input object
- $formType
string - $formType The form type e.g. 'edit' or 'read'
Returns
string - The HTML rendering of the form
|
protected
string
|
#
renderFieldset( stdClass & $fieldset, FOFForm & $form, FOFModel $model, FOFInput $input, string $formType, boolean $showHeader = true )
Renders a raw fieldset of a FOFForm and returns the corresponding HTML
Renders a raw fieldset of a FOFForm and returns the corresponding HTML
Parameters
- $fieldset
stdClass - &$fieldset The fieldset to render
- $form
FOFForm - &$form The form to render
- $model
FOFModel - $model The model providing our data
- $input
FOFInput - $input The input object
- $formType
string - $formType The form type e.g. 'edit' or 'read'
- $showHeader
boolean - $showHeader Should I render the fieldset's header?
Returns
string - The HTML rendering of the fieldset
Overrides
|
protected
string
|
#
renderFieldsetLabel( object $field, FOFForm & $form, string $title )
Renders a label for a fieldset.
Renders a label for a fieldset.
Parameters
- $field
object - $field The field of the label to render
- $form
FOFForm - &$form The form to render
- $title
string - $title The title of the label
Returns
string - The rendered label
Overrides
|
protected
|
#
loadValidationScript( FOFForm & $form )
Loads the validation script for an edit form
Loads the validation script for an edit form
Parameters
- $form
FOFForm - &$form The form we are rendering
|
protected
|
#
renderLinkbar( string $view, string $task, FOFInput $input, array $config = array() )
Renders the submenu (link bar)
Renders the submenu (link bar)
Parameters
- $view
string - $view The active view name
- $task
string - $task The current task
- $input
FOFInput - $input The input object
- $config
array - $config Extra configuration variables for the toolbar
|
protected
|
|
protected
|
#
renderButtons( string $view, string $task, FOFInput $input, array $config = array() )
Renders the toolbar buttons
Renders the toolbar buttons
Parameters
- $view
string - $view The active view name
- $task
string - $task The current task
- $input
FOFInput - $input The input object
- $config
array - $config Extra configuration variables for the toolbar
|