->limit()

->limit() -- Set limit

Referentiesamenvatting

void $DB_DataObject->limit ([int $from [, int $number]])

Beschrijving

Sets the limit for a query. (this only works on databases that support the LIMIT clause), without parameters, it will clear the current limit.

Parameter

Note

Deze functie kan niet statisch worden aangeroepen.

Since postgres and mysql only really support limit directly - calling this on an unsupported database will emit a PEAR::Error and die.

Voorbeeld