My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
IDatabaseRecordLimit  

#Limits the number of records to be returned by the IDatabaseRecord's records() method

Introduction

Limits the amount of records to be returned by the IDatabaseRecord's records() method. Must pass an integer.

Examples

Limit results to 5

include_once $_SERVER['DOCUMENT_ROOT'].'/model.php';
$obj = new Articles();
$obj->limit = 5;

$arrayCollection = $obj->records();

echo $arrayCollection->length;

Powered by Google Project Hosting