Login   Register  
PHP Classes
elePHPant
Icontem

File: Page.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Eugene Panin  >  Pager  >  Page.php  >  Download  
File: Page.php
Role: ???
Content type: text/plain
Description: Page class
Class: Pager
Author: By
Last change:
Date: 2000-10-24 08:47
Size: 954 bytes
 

Contents

Class file image Download
<?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;
        }
}

?>