Granada\ORM::_build_offset PHP Method

_build_offset() protected method

Build OFFSET
protected _build_offset ( )
    protected function _build_offset()
    {
        if (!is_null($this->_offset)) {
            $clause = 'OFFSET';
            if (self::$_db[$this->_connection_name]->getAttribute(PDO::ATTR_DRIVER_NAME) == 'firebird') {
                $clause = 'TO';
            }
            return "{$clause} " . $this->_offset;
        }
        return '';
    }
ORM