|
UNA
|
Public Member Functions | |
| __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 ($bForceGetData=false) | |
| 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=[]) | |
| getFieldsOwn () | |
| getFieldsJoin ($sJoin) | |
| 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) | |
| _getPseudFromParam () | |
| _getPseud () | |
| addMarkers ($a) | |
Public Attributes | |
| $aCurrent | |
Protected Member Functions | |
| _replaceMarkers ($mixed) | |
| _setPageDescription () | |
| BxDolSearchResult::__construct | ( | ) |
constructor filling identificator field
Reimplemented in BxBasePagesSearchResult.
| BxDolSearchResult::_getPseud | ( | ) |
System method for filling aPseud array. Fill field aPseud for current class (if you will use own getSearchUnit methods then not necessary to redeclare).
Reimplemented in BxBaseModGeneralCmtsSearchResult, BxBaseModTextSearchResult, BxCnlSearchResult, BxCoursesSearchResult, BxEventsSearchResult, BxGroupsSearchResult, BxJobsSearchResult, BxOrgsSearchResult, BxPersonsSearchResult, BxSpacesSearchResult, and BxWorkspacesSearchResult.
| BxDolSearchResult::_getPseudFromParam | ( | ) |
System method for filling aPseud array. Fill field aPseud for current class from system option. It may be useful when Fields are taken from system option too.
Reimplemented in BxBaseModGeneralSearchResult.
|
protected |
Replace provided markers in a string
| $mixed | string or array to replace markers in |
| BxDolSearchResult::addCustomParts | ( | ) |
Add different code before html output (usually redeclared) no return result
Reimplemented in BxFilesSearchResult, and BxPollsSearchResult.
| BxDolSearchResult::addMarkers | ( | $a | ) |
Add replace markers. Markers are replaced in titles and browse urls
| $a | array of markers as key => value |
Implements iBxDolReplaceable.
| BxDolSearchResult::displayResultBlock | ( | ) |
Get html output of search result
Reimplemented in BxAdsSearchResult, BxAlbumsSearchResult, BxBaseModGeneralCmtsSearchResult, BxBaseModGeneralSearchResult, BxBaseModProfileSearchResult, BxBaseSearchResult, BxForumSearchResult, BxGlsrSearchResult, BxMarketSearchResult, BxShopifySearchResult, BxStoriesSearchResult, and BxTimelineSearchResult.
| BxDolSearchResult::displayResultBlockEmpty | ( | ) |
| BxDolSearchResult::displaySearchBox | ( | $sCode, | |
| $sPaginate = '' ) |
Get html code of search box with search results
| string | $sCode | html code of search results $param $sPaginate html code of paginate return html code |
Reimplemented in BxBaseModGeneralSearchResult, BxBaseModGroupsSearchResult, and BxBaseSearchResult.
| BxDolSearchResult::displaySearchUnit | ( | $aData | ) |
Get html code of of every search unit
| array | $aData | array of every search unit return html code |
Reimplemented in BxBaseModGeneralCmtsSearchResult, BxBasePagesSearchResult, BxBaseProfileSearchResult, BxBaseSearchResult, and BxPollsSearchResult.
| 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, BxStoriesSearchResultMedia, BxTimelineSearchResult, and BxWorkspacesSearchResult.
| BxDolSearchResult::getJoins | ( | $bRenameMode = true | ) |
Get array with code for sql elements
| $bRenameMode | indicator of renmaing fields return array with joinFields, ownFields, groupBy and join elements |
| BxDolSearchResult::getLimit | ( | $isAddPlusOne = false | ) |
Get limit part of query return $sqlFrom code for limit part pf query
| BxDolSearchResult::getMultiValues | ( | $aValues | ) |
Get set from several values for 'in' and 'not in' operators
| $aValues | array of values return sql code for field with operator IN (NOT IN) |
| BxDolSearchResult::getNum | ( | ) |
Check number of records on current page return number of records on current page + 1
| BxDolSearchResult::getRestriction | ( | ) |
Check restriction params and make condition part of query return $sqlWhere sql code of query for WHERE part
| BxDolSearchResult::getRssUnitImage | ( | & | $a, |
| $sField ) |
Return rss unit image (redeclared)
Reimplemented in BxBaseModProfileSearchResult, and BxBaseModTextSearchResult.
| BxDolSearchResult::getRssUnitLink | ( | & | $a | ) |
Return rss unit link (redeclared)
Reimplemented in BxAlbumsSearchResultMedia, and BxBaseModGeneralSearchResult.
| BxDolSearchResult::getSearchData | ( | ) |
Get array of data with search results return array with data
Reimplemented in BxFilesSearchResult, and BxPhotosSearchResult.
| BxDolSearchResult::getSearchDataByParams | ( | $aParams = '' | ) |
Concat sql parts of query, run it and return result array
| $aParams | addon param return $aData multivariate array |
| BxDolSearchResult::getSearchFieldsCond | ( | $aFields, | |
| $sKeyword, | |||
| $sPseud = '' ) |
Get sql where condition for search fields
| 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 |
| BxDolSearchResult::getSearchQuery | ( | $sObject, | |
| $aParams = [] ) |
Get query [query, limit] for search results. Is used for combined search from different sections.
| type | $aParams | array with params |
| BxDolSearchResult::getSorting | ( | $sSortType = 'last' | ) |
Get sorting part of query according current sorting mode
| string | $sSortType | sorting type return array with sql elements order and ownFields |
| BxDolSearchResult::getTotal | ( | ) |
Get total number of records return total number of records
| BxDolSearchResult::outputRSS | ( | ) |
Output RSS XML with XML header
| BxDolSearchResult::processing | ( | ) |
Get html box of search results (usually used in grlobal search)
Reimplemented in BxFilesSearchResult.
| BxDolSearchResult::processingRaw | ( | ) |
Get search results without design box and paginate
| BxDolSearchResult::rss | ( | ) |
Get XML string for rss output
Reimplemented in BxBaseModGeneralSearchResult.
| BxDolSearchResult::setConditionParams | ( | ) |
Set class fields condition params and paginate array
| BxDolSearchResult::setDisplayEmptyMsg | ( | $b, | |
| $sLangKey = '' ) |
Display empty message if there is no content, custom empty message can be used.
| $b | - boolan value to enable or disable 'empty' message |
| $sLangKey | [optional] - custom 'empty' message |
| BxDolSearchResult::setFieldUnit | ( | $sFieldName, | |
| $sTableName, | |||
| $sOperator = '', | |||
| $bRenameMode = true ) |
Naming fields in query's body
| 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 |
Reimplemented in BxEventsSearchResult.
| 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
| BxDolSearchResult::setProcessPrivateContent | ( | $b | ) |
Perform privacy checking for every unit
| $b | - boolan value to enable or disable privacy checking |
| BxDolSearchResult::setSorting | ( | ) |
Set sorting field of class
| BxDolSearchResult::showPagination | ( | $bAdmin = false, | |
| $bChangePage = true, | |||
| $bPageReload = true ) |
Get html code of pagination
Reimplemented in BxBaseModGeneralSearchResult, BxBaseSearchResult, and BxFilesSearchResult.