SearchformHelper
extends Helper
in package
Used to draw the form to do advanced search for items in a user, group, locale, etc folder
Tags
Table of Contents
- __construct() : mixed
- The constructor at this point does nothing
- render() : mixed
- Draw the form for advanced search for any HTML table drawn based on using a model's getRow function
Methods
__construct()
The constructor at this point does nothing
public
__construct() : mixed
Return values
mixed —render()
Draw the form for advanced search for any HTML table drawn based on using a model's getRow function
public
render(array<string|int, mixed> $data, object $controller, string $activity, object $view, string $title, array<string|int, mixed> $fields[, array<string|int, mixed> $dropdowns = [] ][, string $postfix = "" ]) : mixed
Parameters
- $data : array<string|int, mixed>
-
from the controller with info of what fields might already be filled.
- $controller : object
-
what controller is being used to handle logic
- $activity : string
-
what activity the controller was executing (for return link)
- $view : object
-
which view is responsible for calling this helper
- $title : string
-
what to display as the header of this form
- $fields : array<string|int, mixed>
-
a list of searchable fields
- $dropdowns : array<string|int, mixed> = []
-
which fields should be rendered as dropdowns this array has the format field_name => dropdown_array If dropdown_array is a string among time, date, datetime-locale then a date picker variant will be used for the item. Otherwise, dropdown_array is assume to be in the form value => value translation into locale string
- $postfix : string = ""
-
string to tack on to form variables (might use to make var names unique on page)