Public Member Functions |
| __construct ($term, $params=array(), $usePersonalization=false) |
| fetchNext () |
| existsMore () |
Protected Member Functions |
| fetchPortion () |
Detailed Description
Definition at line 6 of file SearchAdaptor.php.
Member Function Documentation
SearchAdaptor::fetchNext |
( |
| ) |
|
Get current page results
- Returns
- array
Definition at line 50 of file SearchAdaptor.php.
{
while((count($this->_filteredResults) < $this->pageSize * $this->pageNumber) && $this->existsMore()){
$portion = $this->fetchPortion();
if($portion === false){
return array();
} else {
$this->_filteredResults =array_merge($this->_filteredResults, $portion) ;
}
}
$next = array_slice($this->_filteredResults, $this->pageSize * $this->pageNumber - $this->pageSize, $this->pageSize);
return $next;
}
Member Data Documentation
SearchAdaptor::$pageNumber |
The documentation for this class was generated from the following file: