ePages 6.10 - DE_EPAGES/Presentation/API/Object/PagerHash.pm

Package DE_EPAGES::Presentation::API::Object::PagerHash

Creates a pager from a TLE loop of objects. Used by the Pager TLE block DE_EPAGES::Presentation::API::TLE::PagerHandler::PagerHash.

Base
DE_EPAGES::Presentation::API::Object::Pager

Functions

countItems
items
sortObjects

countItems

Returns the total number of items to be paged.

Syntax
$Count = $Pager->countItems;
Return
$Count (integer)
number of items

items

Returns all items of one page.

Syntax
$aItems = $Pager->items($Page);
Input
$Page (integer)
current page number
Return
$aItems (ref.array.object)
list of objects

sortObjects

Sorts the hashes according to the 'OrderBy' and 'OrderDesc' attributes, which are set by corresponding input fields. override pager->sortObjects

Syntax
$aSortedObjects = $Pager->sortObjects($aObjects);
Input
$aObjects (ref.array.hash)
list of hashes
Return
$aSortedObjects (ref.array.hash)
sorted list of hashes