Granada\ORM::_build_limit PHP Method

_build_limit() protected method

Build LIMIT
protected _build_limit ( )
    protected function _build_limit()
    {
        $fragment = '';
        if (!is_null($this->_limit) && self::$_config[$this->_connection_name]['limit_clause_style'] == ORM::LIMIT_STYLE_LIMIT) {
            if (self::$_db[$this->_connection_name]->getAttribute(PDO::ATTR_DRIVER_NAME) == 'firebird') {
                $fragment = 'ROWS';
            } else {
                $fragment = 'LIMIT';
            }
            $fragment .= " {$this->_limit}";
        }
        return $fragment;
    }
ORM