Display a search form that selects on typed text only
package | Gems |
---|---|
subpackage | Snippets_Log |
copyright | Copyright (c) 2015 Erasmus MC |
license | New BSD License |
since | Class available since version 1.6.5 16-feb-2015 19:46:34 |
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_Abstract
Just in case it is needed here
\MUtil_Html_HtmlInterface
Something that can be renderedgetPeriodFilter(array $filter, \Zend_Db_Adapter_Abstract $db, $inFormat= null
, $outFormat= null
) : string
array
A 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
)
array
Search element array to which the element are added.
mixed
A string fieldName to use or an array of fieldName => Label
string
Optional element, otherwise first is used.
integer
The 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.
string
Name of the element
string
Label 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.
string
Name of the select element
string
array
Can be a SQL select string or key/value array of options
string
Text 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.
string
Name of the select element
string
array
Can be a SQL select string or key/value array of options
string
Text to display for the empty selector
\Zend_Form_Element_Select
createForm(array $options = null
) : \Gems_Form
array
\Gems_Form
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
inherited_from | \Gems_Snippets_AutosearchFormSnippet::getAutoSearchElements() |
---|
array
The $form field values (can be usefull, but no need to set them)
array
Of \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
array
The $form field values (can be usefull, but no need to set them)
array
Of \Zend_Form_Element's or static tekst to add to the html or null for group breaks.getAutoSearchForm() : \Gems_Form | null
\Gems_Form
null
getAutoSearchHref() : string
string
Href attribute for type as you go autofiltergetAutoSearchReset() : \Zend_Form_Element_Html
\Zend_Form_Element_Html
or nullgetAutoSearchSubmit() : \Zend_Form_Element_Submit
\Zend_Form_Element_Submit
getSearchData() : array
array
The 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.
string
Name of the class to use
string
Name of the select element
string
array
Can be a SQL select string or key/value array of options
string
Text 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'