|
| __construct ($aObject, $oTemplate=null) |
|
| getForm ($aParams=array()) |
|
| getResultsAPI ($aData, $iPerPage, $iStart, $aParamsSearch='') |
|
| getResults ($aParams=array()) |
|
| isEnabled () |
|
| clean () |
|
| cleanFields () |
|
| cleanSortableFields () |
|
| reset () |
|
| resetFields () |
|
| resetSortableFields () |
|
|
& | prepareForm ($aParams=array()) |
|
| __construct ($aObject) |
|
|
| $_sFormClassName |
|
| $_sFormClassPath |
|
| $_oForm |
|
| $_oTemplate |
|
| $_bJsMode |
|
| $_iAgeMin |
|
| $_iAgeMax |
|
| $_bIsApi |
|
| $_oDb |
|
| $_sObject |
|
| $_aObject |
|
| $_bFilterMode |
|
Extended Search objects representation.
- See also
- BxDolSearchExtended
◆ getResults()
BxBaseSearchExtended::getResults |
( |
| $aParams = array() | ) |
|
Get search results from search form or from custom condition
- Parameters
-
$aParams['cond'] | custom condition to pass instead of form submission, conditions are key&value pair, where 'key' is form input name and 'value' is the term to search for |
$aParams['start'] | position of first record to display |
$aParams['per_page'] | number of items per page |
$aParams['template'] | custom unit templates to use |
- Returns
- HTML string with search results
Hooks:
'search', 'get_data' - hook in get data for serach
- $unit_name - equals
search
- $action - equals
get_data
- $object_id - not used
- $sender_id - not used
- $extra_params - array of additional params with the following array keys:
object
- [array] by ref, object info for current search, can be overridden in hook processing
search_params
- [string] by ref, search params, can be overridden in hook processing
search_results
- [string] by ref, html for block, can be overridden in hook processing - HOOKS
- 'search', 'get_data' - hook in get data for serach
The documentation for this class was generated from the following file:
- template/scripts/BxBaseSearchExtended.php