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

Package DE_EPAGES::Presentation::API::Object::PagerChildren

Pager to display the list of all child objects of an object.

Base
DE_EPAGES::Presentation::API::Object::Pager
Example
sub ViewCustomers {
    my $self = shift;
    my ($Servlet) = @_;

    my $Shop = $Servlet->object;
    my $Pager = DE_EPAGES::Presentation::API::Object::PagerChildren->new({
        'Servlet'  => $Servlet,
        'Object'   => $Shop->folder('Customers'),
        'PageSize' => 25,
        'OrderBy'  => 'Alias'
    });
    return $Pager->page;
}

Functions

countItems
items

countItems

Returns the total number of child objects.

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

items

Returns all objects of one page.

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