|
|
@@ -388,7 +388,6 @@ class BxDolSearchResult implements iBxDolReplaceable
|
|
|
protected $_aParams = [];
|
|
|
protected $_sCategoryObject = '';
|
|
|
protected $_aCustomSearchCondition = array();
|
|
|
- protected $_bValidate = false;
|
|
|
|
|
|
protected $_aMarkers = array (); ///< markers to replace somewhere, usually title and browse url (defined in custom class)
|
|
|
|
|
|
@@ -558,9 +557,6 @@ class BxDolSearchResult implements iBxDolReplaceable
|
|
|
if($this->_bIsApi)
|
|
|
return $this->processingAPI();
|
|
|
|
|
|
- if($this->_bValidate)
|
|
|
- return $this->getSearchData();
|
|
|
-
|
|
|
$sCode = $this->displayResultBlock();
|
|
|
if ($this->aCurrent['paginate']['num'] > 0) {
|
|
|
$sPaginate = $this->showPagination();
|
|
|
@@ -798,16 +794,6 @@ class BxDolSearchResult implements iBxDolReplaceable
|
|
|
|
|
|
$this->setConditionParams();
|
|
|
$aData = $this->aCurrent['paginate']['num'] > 0 ? $this->getSearchDataByParams() : [];
|
|
|
-
|
|
|
- if($this->_bValidate) {
|
|
|
- $aIds = array_map(function($aItem) {
|
|
|
- return $aItem['id'];
|
|
|
- }, $aData);
|
|
|
-
|
|
|
- sort($aIds);
|
|
|
- sort($this->_aParams['validate']);
|
|
|
- $aData = $aIds == $this->_aParams['validate'] ? 'valid' : 'invalid';
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* @hooks
|
|
|
@@ -1320,13 +1306,6 @@ class BxDolSearchResult implements iBxDolReplaceable
|
|
|
*/
|
|
|
function setPaginate ()
|
|
|
{
|
|
|
- if($this->_bValidate) {
|
|
|
- $this->aCurrent['paginate']['start'] = 0;
|
|
|
- $this->aCurrent['paginate']['perPage'] = count($this->_aParams['validate']);
|
|
|
-
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
$iStart = 0;
|
|
|
$iPerPage = 0;
|
|
|
|