|
Method setLimit( $iLimit_page, $iLength ) |
|
Written by Hidalgo Emmanuel
|
|
Description :
The limitation amongst objects allows turned over by the collection.
Parameters :
$iLimit_page, integer : This parameter awaits a number of page (minimum 1) $iLength, integer : This parameter determines the number of beach to return
Value of return :
No parameter of return.
The following example recovers the 10 first “users” according to their levels of authorization :
<?php
//total instanciation include_once( 'phpsimpledb.class.php' ); Global $oBDD; $oBDD = new PHPSIMPLEDB(); // loading of the 10 first “users” according to “level = 1” $oUsers_col = $oBDD->getCollection( "users" ); $oUsers_col->setLimit( 1, 10 ); $oUsers_col->load( array( "level = 1" ) );
?>
|
|