FOF30\Model\DataModel::take PHP Method

take() public method

Alias of $this->setState('limit', $limit);
public take ( integer $limit = null )
$limit integer Maximum number of records to return
    public function take($limit = null)
    {
        // Only positive integers are allowed
        if (!is_int($limit) || $limit < 0 || !$limit) {
            $limit = 0;
        }
        $this->setState('limit', $limit);
        return $this;
    }