Location: PHPKode > scripts > Pager > pager/Page.php
<?php
class Page {
        // Current page number
        var $pageno=1;
        // Target array's elements starts from $from.
        var $from=1;
        // Target array's elements ends to $to.
        var $to=1;
        // Result array.
        var $result = array();

        // Creates Page object.
        // Usage:
        // $page = $pager->page($pageno);
        //
        function Page($page=1) {
                $this->pageno = $page;
        }

        // Do not use it.
        function setFrom($from=1) {
                $this->from = $from;
        }

        // Do not use it.
        function setTo($to=1) {
                $this->to = $to;
        }

        // Do not use it.
        function setResult($res=array()) {
                $this->result = $res;
        }

        // returns Page's result array.
        function getResult() {
                return $this->result;
        }
}

?>
Return current item: Pager