\seekquarry\yioop\views\helpersSearchformHelper

Used to draw the form to do advanced search for items in a user, group, locale, etc folder

Helpers are classes used to reduce the coding required in Views. They do some computation with the data they are supplied and output HTML/XML

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

The constructor at this point does nothing

render()

render(array  $data, object  $controller, string  $activity, object  $view, string  $title, array  $fields, array  $dropdowns = array(), string  $postfix = "") 

Draw the form for advanced search for any HTML table drawn based on using a model's getRow function

Parameters

array $data

from the controller with info of what fields might already be filled.

object $controller

what controller is being used to handle logic

string $activity

what activity the controller was executing (for return link)

object $view

which view is responsible for calling this helper

string $title

what to display as the header of this form

array $fields

a list of searchable fields

array $dropdowns

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

string $postfix

string to tack on to form variables (might use to make var names unique on page)