|
| __construct () |
|
| setDisplayEmptyMsg ($b, $sLangKey='') |
|
| setProcessPrivateContent ($b) |
|
| processingRaw () |
|
| processing () |
|
| 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 () |
|
| getSearchFieldsCond ($aFields, $sKeyword, $sPseud='') |
|
| getMultiValues ($aValues) |
|
| _getPseud () |
|
| addMarkers ($a) |
|
◆ __construct()
BxDolSearchResult::__construct |
( |
| ) |
|
constructor filling identificator field
◆ _getPseud()
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).
◆ _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 |
( |
| ) |
|
Add different code before html output (usually redeclared) no return result
◆ 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
◆ displayResultBlockEmpty()
BxDolSearchResult::displayResultBlockEmpty |
( |
| ) |
|
Get html output of empty search result
- Returns
- html code
◆ displaySearchBox()
BxDolSearchResult::displaySearchBox |
( |
|
$sCode, |
|
|
|
$sPaginate = '' |
|
) |
| |
Get html code of search box with search results
- Parameters
-
string | $sCode | html code of search results $param $sPaginate html code of paginate return html code |
◆ displaySearchUnit()
BxDolSearchResult::displaySearchUnit |
( |
|
$aData | ) |
|
Get html code of of every search unit
- Parameters
-
array | $aData | array of every search unit return html code |
◆ getAlterOrder()
BxDolSearchResult::getAlterOrder |
( |
| ) |
|
Return own varaint for sorting (redeclare if necessary) return array of sql elements
◆ 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 |
|
) |
| |
Return rss unit image (redeclared)
◆ getRssUnitLink()
BxDolSearchResult::getRssUnitLink |
( |
& |
$a | ) |
|
Return rss unit link (redeclared)
◆ getSearchData()
BxDolSearchResult::getSearchData |
( |
| ) |
|
Get array of data with search results return array with data
◆ 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
◆ 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
◆ processingRaw()
BxDolSearchResult::processingRaw |
( |
| ) |
|
Get search results without design box and paginate
- Returns
- html code
◆ rss()
BxDolSearchResult::rss |
( |
| ) |
|
Get XML string for rss output
◆ 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 |
|
) |
| |
Get html code of pagination
The documentation for this class was generated from the following file:
- inc/classes/BxDolSearch.php