Extends
lithium\core\Object
Set and get method for query's limit of amount of records to return
Parameters
- integer $limit
Returns
integerSource
public function limit($limit = null) {
if ($limit) {
$this->_config['limit'] = intval($limit);
return $this;
}
if ($limit === false) {
$this->_config['limit'] = null;
return $this;
}
return $this->_config['limit'];
}