.

DBQueryLimited Class Reference
[Model]

A limited query. More...

Inheritance diagram for DBQueryLimited:
DBQuery IDBQuery IDBSqlBuilder IPolicyHolder IDBWhereHolder DBQueryOrdered DBQueryDelete DBQuerySelect DBQueryUpdate DBQueryCount DBQueryJoined

List of all members.

Public Member Functions

  get_limit ()
  Returns limit.
  set_limit ($start_or_count, $count=null)
  Set limit.

Protected Attributes

  $limit = array(0, 0)

Detailed Description

A limited query.

Author:
Gerd Riesselmann

Definition at line 8 of file dbquery.limited.cls.php.


Member Function Documentation

DBQueryLimited::get_limit (  ) 

Returns limit.

Returns:
array Array with two members: 1. start_row, 2. number of rows

Definition at line 36 of file dbquery.limited.cls.php.

00036                                     {
00037                 return $this->limit;
00038         }
DBQueryLimited::set_limit ( start_or_count,
count = null  
)

Set limit.

Parameters:
int  $start_or_count start record (0-based) or count, if $count is 0
int  $count Optional. Number of rows to retrieve

Definition at line 22 of file dbquery.limited.cls.php.

00022                                                                   {
00023                 if ($count) {
00024                         $this->limit = array($start_or_count, $count);
00025                 }
00026                 else {
00027                         $this->limit = array(0, $start_or_count);
00028                 }
00029         }

Member Data Documentation

DBQueryLimited::$limit = array(0, 0) [protected]

Definition at line 14 of file dbquery.limited.cls.php.


The documentation for this class was generated from the following file: