Package DE_EPAGES::RemoteSearch::API::Object::RemoteSearchPager
Pager for remote search results. Items must be extra provided with $Pager->handleSearchResponse($SearchResponse) before you can execute $Pager->page()
Base |
DE_EPAGES::Presentation::API::Object::Pager |
Functions
countItems
returns how many items should be paged.
Syntax |
$Pager->countItems; |
Return |
|
handleSearchResponse
Extract 'Items' and 'ItemCount' from $hSearchResponse and calls
$Pager->statistic(). $hSearchResponse is result from a
$SearchClient->searchAsObject(...) call.
See DE_EPAGES::RemoteSearch::API::Object::SearchClient
Syntax |
$Pager->handleSearchResponse( $hSearchResponse ); |
Input |
|
items
Load exsisting objects of current page. RemoteSearch may find deleted objects, in this case the Pager will discard these objects from result list. This may result in a smaller list than specified by PageSize
Syntax |
my $aItems = $Pager->items(); |
Return |
|
new
Constructor to create RemoteSearchPager without items. You must call $Pager->handleSearchResponse($SearchResponse) to provide items.
Syntax |
my $Pager = DE_EPAGES::RemoteSearch::API::Object::RemoteSearchPager->new( $hInfo ); |
Input |
|
Return |
|