src/core/framework/core/3rdparty/ezcomponents/Database/src/sqlabstraction/query_select.php
public function getQuery()
    {
        if ( $this->selectString == null )
        {
            throw new ezcQueryInvalidException( "SELECT", "select() was not called before getQuery()." );
        }

        $query = "{$this->selectString}";
        if ( $this->fromString != null )
        {
            $query = "{$query} {$this->fromString}";
        }
        if ( $this->whereString != null )
        {
            $query = "{$query} {$this->whereString}";
        }
        if ( $this->groupString != null )
        {
            $query = "{$query} {$this->groupString}";
        }
        if ( $this->havingString != null )
        {
            $query = "{$query} {$this->havingString}";
        }
        if ( $this->orderString != null )
        {
            $query = "{$query} {$this->orderString}";
        }
        if ( $this->limitString != null )
        {
            $query = "{$query} {$this->limitString}";
        }
        return $query;
    }
public function getQuery()
    {
        if ( $this->selectString == null )
        {
            throw new ezcQueryInvalidException( "SELECT", "select() was not called before getQuery()." );
        }

        $query = "{$this->selectString}";
        if ( $this->fromString != null )
        {
            $query = "{$query} {$this->fromString}";
        }
        if ( $this->whereString != null )
        {
            $query = "{$query} {$this->whereString}";
        }
        if ( $this->groupString != null )
        {
            $query = "{$query} {$this->groupString}";
        }
        if ( $this->havingString != null )
        {
            $query = "{$query} {$this->havingString}";
        }
        if ( $this->orderString != null )
        {
            $query = "{$query} {$this->orderString}";
        }
        if ( $this->limitString != null )
        {
            $query = "{$query} {$this->limitString}";
        }
        return $query;
    }
public function getQuery ( ) { if ( $ this -> selectString == null ) { throw new ezcQueryInvalidException ( "SELECT" , "select() was not called before getQuery()." ) ; } $ query = "{$this->selectString}" ; if ( $ this -> fromString != null ) { $ query = "{$query} {$this->fromString}" ; } if ( $ this -> whereString != null ) { $ query = "{$query} {$this->whereString}" ; } if ( $ this -> groupString != null ) { $ query = "{$query} {$this->groupString}" ; } if ( $ this -> havingString != null ) { $ query = "{$query} {$this->havingString}" ; } if ( $ this -> orderString != null ) { $ query = "{$query} {$this->orderString}" ; } if ( $ this -> limitString != null ) { $ query = "{$query} {$this->limitString}" ; } return $ query ; }
Returns the complete select query string.

This method uses the build methods to build the
various parts of the select query.

@todo add newlines? easier for debugging
@throws ezcQueryInvalidException if it was not possible to build a valid query.
@return string
Returns the complete select query string .