|
| __construct () |
|
| getId () |
|
| setId ($sId) |
|
| getModuleName () |
|
| getContentInfoName () |
|
| setAjaxPaginate ($b=true) |
|
| setPaginatePerPage ($iPerPage) |
|
| setSingleSearch ($bSingleSearch) |
|
| setLiveSearch ($bLiveSearch) |
|
| setMetaType ($s) |
|
| isMetaEnabled ($s) |
|
| setCategoryObject ($s) |
|
| setCustomSearchCondition ($a) |
|
| setCustomCurrentCondition ($a) |
|
| setCategoriesCondition ($sKeyword) |
|
| setDisplayEmptyMsg ($b, $sLangKey='') |
|
| setProcessPrivateContent ($b) |
|
| processingRaw () |
|
| processing () |
|
| processingAPI () |
|
| decodeDataAPI ($a) |
|
| displayResultBlock () |
|
| displayResultBlockEmpty () |
|
| addCustomParts () |
|
| rss () |
|
| outputRSS () |
|
| getRssUnitLink (&$a) |
|
| getRssUnitImage (&$a, $sField) |
|
| setFieldUnit ($sFieldName, $sTableName, $sOperator='', $bRenameMode=true) |
|
| displaySearchUnit ($aData) |
|
| displaySearchBox ($sCode, $sPaginate='') |
|
| showPagination ($bAdmin=false, $bChangePage=true, $bPageReload=true) |
|
| getSearchData () |
|
| getSearchQuery ($sObject, $aParams=[]) |
|
| getJoins ($bRenameMode=true) |
|
| getSearchDataByParams ($aParams='') |
|
| setConditionParams () |
|
| getNum () |
|
| getTotal () |
|
| getRestriction () |
|
| getLimit ($isAddPlusOne=false) |
|
| setSorting () |
|
| getSorting ($sSortType='last') |
|
| getAlterOrder () |
|
| setPaginate () |
|
| unsetPaginate () |
|
| getSearchFieldsCond ($aFields, $sKeyword, $sPseud='') |
|
| getMultiValues ($aValues) |
|
| _getPseud () |
|
| addMarkers ($a) |
|
|
| $aPseud |
|
| $id |
|
| $bDisplayEmptyMsg = false |
|
| $sDisplayEmptyMsgKey = '' |
|
| $bProcessPrivateContent = true |
|
| $aPrivateConditionsIndexes = array('restriction' => array(), 'join' => array()) |
|
| $bForceAjaxPaginate = false |
|
| $iPaginatePerPage = BX_DOL_SEARCH_RESULTS_PER_PAGE_DEFAULT |
|
| $_bIsApi |
|
| $_bSingleSearch = true |
|
| $_bLiveSearch = false |
|
| $_sMetaType = '' |
|
| $_sMode = '' |
|
| $_aParams = [] |
|
| $_sCategoryObject = '' |
|
| $_aCustomSearchCondition = array() |
|
| $_bValidate = false |
|
| $_aMarkers = array () |
|
◆ __construct()
BxDolSearchResult::__construct |
( |
| ) |
|
◆ _getPseud()
BxDolSearchResult::_getPseud |
( |
| ) |
|
◆ _replaceMarkers()
BxDolSearchResult::_replaceMarkers |
( |
| $mixed | ) |
|
|
protected |
Replace provided markers in a string
- Parameters
-
$mixed | string or array to replace markers in |
- Returns
- string where all occured markers are replaced
◆ addCustomParts()
BxDolSearchResult::addCustomParts |
( |
| ) |
|
◆ addMarkers()
BxDolSearchResult::addMarkers |
( |
| $a | ) |
|
Add replace markers. Markers are replaced in titles and browse urls
- Parameters
-
$a | array of markers as key => value |
- Returns
- true on success or false on error
Implements iBxDolReplaceable.
◆ displayResultBlock()
BxDolSearchResult::displayResultBlock |
( |
| ) |
|
Get html output of search result
- Returns
- html code
Reimplemented in BxAdsSearchResult, BxAlbumsSearchResult, BxBaseModGeneralCmtsSearchResult, BxBaseModGeneralSearchResult, BxBaseModProfileSearchResult, BxBaseSearchResult, BxForumSearchResult, BxGlsrSearchResult, BxMarketSearchResult, BxShopifySearchResult, and BxTimelineSearchResult.
◆ displayResultBlockEmpty()
BxDolSearchResult::displayResultBlockEmpty |
( |
| ) |
|
Get html output of empty search result
- Returns
- html code
Reimplemented in BxBaseSearchResult.
◆ displaySearchBox()
BxDolSearchResult::displaySearchBox |
( |
| $sCode, |
|
|
| $sPaginate = '' ) |
◆ displaySearchUnit()
BxDolSearchResult::displaySearchUnit |
( |
| $aData | ) |
|
◆ getAlterOrder()
BxDolSearchResult::getAlterOrder |
( |
| ) |
|
Return own varaint for sorting (redeclare if necessary) return array of sql elements
Reimplemented in BxAdsSearchResult, BxAlbumsSearchResultMedia, BxBaseModGeneralCmtsSearchResult, BxBaseModTextSearchResult, BxBasePagesSearchResult, BxBaseProfileSearchResult, BxClssSearchResult, BxCnlSearchResult, BxCoursesSearchResult, BxEventsSearchResult, BxFilesSearchResult, BxForumSearchResult, BxGlsrSearchResult, BxGroupsSearchResult, BxJobsSearchResult, BxOrgsSearchResult, BxPersonsSearchResult, BxShopifySearchResult, BxSnipcartSearchResult, BxSpacesSearchResult, and BxTimelineSearchResult.
◆ getJoins()
BxDolSearchResult::getJoins |
( |
| $bRenameMode = true | ) |
|
Get array with code for sql elements
- Parameters
-
$bRenameMode | indicator of renmaing fields return array with joinFields, ownFields, groupBy and join elements |
◆ getLimit()
BxDolSearchResult::getLimit |
( |
| $isAddPlusOne = false | ) |
|
Get limit part of query return $sqlFrom code for limit part pf query
◆ getMultiValues()
BxDolSearchResult::getMultiValues |
( |
| $aValues | ) |
|
Get set from several values for 'in' and 'not in' operators
- Parameters
-
$aValues | array of values return sql code for field with operator IN (NOT IN) |
◆ getNum()
BxDolSearchResult::getNum |
( |
| ) |
|
Check number of records on current page return number of records on current page + 1
◆ getRestriction()
BxDolSearchResult::getRestriction |
( |
| ) |
|
Check restriction params and make condition part of query return $sqlWhere sql code of query for WHERE part
◆ getRssUnitImage()
BxDolSearchResult::getRssUnitImage |
( |
& | $a, |
|
|
| $sField ) |
◆ getRssUnitLink()
BxDolSearchResult::getRssUnitLink |
( |
& | $a | ) |
|
◆ getSearchData()
BxDolSearchResult::getSearchData |
( |
| ) |
|
Get array of data with search results return array with data
Hooks:
'simple_search', 'before_get_data' - hook on before after get data
- $unit_name - equals
simple_search
- $action - equals
before_get_data
- $object_id - not used
- $sender_id - not used
- $extra_params - array of additional params with the following array keys:
Hooks:
'simple_search', 'get_data' - hook on after get data
- $unit_name - equals
simple_search
- $action - equals
get_data
- $object_id - not used
- $sender_id - not used
- $extra_params - array of additional params with the following array keys:
Reimplemented in BxFilesSearchResult, and BxPhotosSearchResult.
◆ getSearchDataByParams()
BxDolSearchResult::getSearchDataByParams |
( |
| $aParams = '' | ) |
|
Concat sql parts of query, run it and return result array
- Parameters
-
$aParams | addon param return $aData multivariate array |
◆ getSearchFieldsCond()
BxDolSearchResult::getSearchFieldsCond |
( |
| $aFields, |
|
|
| $sKeyword, |
|
|
| $sPseud = '' ) |
Get sql where condition for search fields
- Parameters
-
| array | of search fields |
string | $sKeyword | keyword value for search |
| string | sPseud for setting new name for generated set of fields in query return sql code of WHERE part in query |
◆ getSearchQuery()
BxDolSearchResult::getSearchQuery |
( |
| $sObject, |
|
|
| $aParams = [] ) |
Get query [query, limit] for search results. Is used for combined search from different sections.
- Parameters
-
type | $aParams | array with params |
- Returns
- type array with query and limit
Hooks:
'simple_search', 'get_query' - hook on get sql queries
- $unit_name - equals
simple_search
- $action - equals
get_query
- $object_id - not used
- $sender_id - not used
- $extra_params - array of additional params with the following array keys:
object
- [array] by ref, array of parameters, can be overridden in hook processing
mode
- [string] search mode
search_object
- [string] search object name
search_query
- [array] by ref, array of sql, can be overridden in hook processing - HOOKS
- 'simple_search', 'get_query' - hook on get sql queries
◆ getSorting()
BxDolSearchResult::getSorting |
( |
| $sSortType = 'last' | ) |
|
Get sorting part of query according current sorting mode
- Parameters
-
string | $sSortType | sorting type return array with sql elements order and ownFields |
◆ getTotal()
BxDolSearchResult::getTotal |
( |
| ) |
|
Get total number of records return total number of records
◆ outputRSS()
BxDolSearchResult::outputRSS |
( |
| ) |
|
Output RSS XML with XML header
◆ processing()
BxDolSearchResult::processing |
( |
| ) |
|
Get html box of search results (usually used in grlobal search)
- Returns
- html code
Reimplemented in BxFilesSearchResult.
◆ processingRaw()
BxDolSearchResult::processingRaw |
( |
| ) |
|
Get search results without design box and paginate
- Returns
- html code
◆ rss()
BxDolSearchResult::rss |
( |
| ) |
|
◆ setConditionParams()
BxDolSearchResult::setConditionParams |
( |
| ) |
|
Set class fields condition params and paginate array
◆ setDisplayEmptyMsg()
BxDolSearchResult::setDisplayEmptyMsg |
( |
| $b, |
|
|
| $sLangKey = '' ) |
Display empty message if there is no content, custom empty message can be used.
- Parameters
-
$b | - boolan value to enable or disable 'empty' message |
$sLangKey | [optional] - custom 'empty' message |
◆ setFieldUnit()
BxDolSearchResult::setFieldUnit |
( |
| $sFieldName, |
|
|
| $sTableName, |
|
|
| $sOperator = '', |
|
|
| $bRenameMode = true ) |
Naming fields in query's body
- Parameters
-
string | $sFieldName | name of field |
string | $sTableName | name of field's table $param string $sOperator of field's calculation (like MAX) |
boolean | $bRenameMode | indicator for renaming and unsetting fields from field of class $this->aPseud return $sqlUnit sql code and unsetting elements from aPseud field |
◆ setPaginate()
BxDolSearchResult::setPaginate |
( |
| ) |
|
Set paginate fields of class according GET params 'start' and 'per_page' forcePage is need for setting most important number of current page
◆ setProcessPrivateContent()
BxDolSearchResult::setProcessPrivateContent |
( |
| $b | ) |
|
Perform privacy checking for every unit
- Parameters
-
$b | - boolan value to enable or disable privacy checking |
◆ setSorting()
BxDolSearchResult::setSorting |
( |
| ) |
|
Set sorting field of class
◆ showPagination()
BxDolSearchResult::showPagination |
( |
| $bAdmin = false, |
|
|
| $bChangePage = true, |
|
|
| $bPageReload = true ) |
The documentation for this class was generated from the following file:
- inc/classes/BxDolSearch.php