PHP Trait Bluz\Db\Query\Traits\Limit

Required for: - Select Builder - Update Builder - Delete Builder
Author: Anton Shevchuk
Show file Open project: bluzphp/framework

Protected Properties

Property Type Description
$limit the maximum number of results to retrieve/update/delete
$offset the index of the first result to retrieve.

Public Methods

Method Description
limit ( integer $limit, integer $offset ) Sets the maximum number of results to retrieve/update/delete
setLimit ( integer $limit ) Setup limit for the query
setOffset ( integer $offset ) Setup offset for the query

Method Details

limit() public method

Sets the maximum number of results to retrieve/update/delete
public limit ( integer $limit, integer $offset )
$limit integer The maximum number of results to retrieve
$offset integer

setLimit() public method

Setup limit for the query
public setLimit ( integer $limit )
$limit integer

setOffset() public method

Setup offset for the query
public setOffset ( integer $offset )
$offset integer

Property Details

$limit protected property

the maximum number of results to retrieve/update/delete
protected $limit

$offset protected property

the index of the first result to retrieve.
protected $offset