Display a search form that selects on typed text only
| package | Gems |
|---|---|
| subpackage | Snippets_Survey |
| copyright | Copyright (c) 2015 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6.5 20-feb-2015 13:22:48 |
| inherited_from | \Gems_Snippets_AutosearchFormSnippet |
afterRegistry() : void
getHtmlOutput(\Zend_View_Abstract $view) : \MUtil_Html_HtmlInterface
This is a stub function either override getHtmlOutput() or override render()
\Zend_View_AbstractJust in case it is needed here
\MUtil_Html_HtmlInterfaceSomething that can be renderedgetPeriodFilter(array $filter, \Zend_Db_Adapter_Abstract $db, $inFormat= null, $outFormat= null) : string
arrayA filter array or $request->getParams()
\Zend_Db_Adapter_Abstract
Optional format to use for date when reading
Optional format to use for date in query
string_addPeriodSelectors(array $elements, mixed $dates, string $defaultDate= null, integer $switchToSelect= 4)
arraySearch element array to which the element are added.
mixedA string fieldName to use or an array of fieldName => Label
stringOptional element, otherwise first is used.
integerThe number of dates where this function should switch to select display
_createCheckboxElement(string $name, string $label) : \Zend_Form_Element_Checkbox
If $options is a string it is assumed to contain an SQL statement.
stringName of the element
stringLabel for element
\Zend_Form_Element_Checkbox_createRadioElement(string $name, string|array $options, string $empty = null) : \Zend_Form_Element_Radio
If $options is a string it is assumed to contain an SQL statement.
stringName of the select element
stringarrayCan be a SQL select string or key/value array of options
stringText to display for the empty selector
\Zend_Form_Element_Radio_createSelectElement(string $name, string|array $options, string $empty = null) : \Zend_Form_Element_Select
If $options is a string it is assumed to contain an SQL statement.
stringName of the select element
stringarrayCan be a SQL select string or key/value array of options
stringText to display for the empty selector
\Zend_Form_Element_SelectcreateForm(array $options = null) : \Gems_Form
array
\Gems_FormgetAutoSearchElements(array $data) : array
The form / html elements to search on. Elements can be grouped by inserting null's between them. That creates a distinct group of elements
| inherited_from | \Gems_Snippets_AutosearchFormSnippet::getAutoSearchElements() |
|---|
arrayThe $form field values (can be usefull, but no need to set them)
arrayOf \Zend_Form_Element's or static tekst to add to the html or null for group breaks.getAutoSearchElements(array $data) : array
The form / html elements to search on. Elements can be grouped by inserting null's between them. That creates a distinct group of elements
arrayThe $form field values (can be usefull, but no need to set them)
arrayOf \Zend_Form_Element's or static tekst to add to the html or null for group breaks.getAutoSearchForm() : \Gems_Form | null
\Gems_Formnull
getAutoSearchHref() : string
stringHref attribute for type as you go autofiltergetAutoSearchReset() : \Zend_Form_Element_Html
\Zend_Form_Element_Htmlor nullgetAutoSearchSubmit() : \Zend_Form_Element_Submit
\Zend_Form_Element_SubmitgetSearchData() : array
arrayThe data to fill the form with_createMultiElement(string $class, string $name, string|array $options, string $empty) : \Zend_Form_Element_Multi
If $options is a string it is assumed to contain an SQL statement.
stringName of the class to use
stringName of the select element
stringarrayCan be a SQL select string or key/value array of options
stringText to display for the empty selector
\Zend_Form_Element_Multi$requestCache : \Gems_Util_RequestCache
$containingId : string
$dateFormat : string
$db : \Zend_Db_Adapter_Abstract
$defaultSearchData : \array()
array()$model : \MUtil_Model_ModelAbstract
$request : \Zend_Controller_Request_Abstract
$searchButtonId : string
'AUTO_SEARCH_TEXT_BUTTON'$searchData : array
false$util : \Gems_Util
PERIOD_DATE_USED = 'dateused'