private function parse()
    {
        // Skip if already parsed!
        if ($this->parsed) {
            return;
        }

        // Type switch
        switch($this->query->mode){
            case Query::MODE_SELECT:
                $this->parseSelectQuery(); break;
            case Query::MODE_INSERT:
                $this->parseInsertQuery(); break;
            case Query::MODE_UPDATE:
                $this->parseUpdateQuery(); break;
            case Query::MODE_DELETE:
                $this->parseDeleteQuery(); break;
            case Query::MODE_TRUNCATE:
                $this->parseTruncateQuery(); break;
            case Query::MODE_ADVANCED:
                throw new QueryBuilderParseException("Query mode not yet implemented!"); break; // @codeCoverageIgnore
            case Query::MODE_NONE:
                throw new QueryBuilderParseException("Query has no mode yet!"); break; // @codeCoverageIgnore
            default:
                throw new QueryBuilderParseException("Query mode is invalid!"); break; // @codeCoverageIgnore
        }


        // Set parsed to true.
        $this->parsed = true;
    }
private function parse()
    {
        // Skip if already parsed!
        if ($this->parsed) {
            return;
        }

        // Type switch
        switch($this->query->mode){
            case Query::MODE_SELECT:
                $this->parseSelectQuery(); break;
            case Query::MODE_INSERT:
                $this->parseInsertQuery(); break;
            case Query::MODE_UPDATE:
                $this->parseUpdateQuery(); break;
            case Query::MODE_DELETE:
                $this->parseDeleteQuery(); break;
            case Query::MODE_TRUNCATE:
                $this->parseTruncateQuery(); break;
            case Query::MODE_ADVANCED:
                throw new QueryBuilderParseException("Query mode not yet implemented!"); break; // @codeCoverageIgnore
            case Query::MODE_NONE:
                throw new QueryBuilderParseException("Query has no mode yet!"); break; // @codeCoverageIgnore
            default:
                throw new QueryBuilderParseException("Query mode is invalid!"); break; // @codeCoverageIgnore
        }


        // Set parsed to true.
        $this->parsed = true;
    }
private function parse ( ) { // Skip if already parsed! if ( $ this -> parsed ) { return ; } // Type switch switch ( $ this -> query -> mode ) { case Query :: MODE_SELECT : $ this -> parseSelectQuery ( ) ; break ; case Query :: MODE_INSERT : $ this -> parseInsertQuery ( ) ; break ; case Query :: MODE_UPDATE : $ this -> parseUpdateQuery ( ) ; break ; case Query :: MODE_DELETE : $ this -> parseDeleteQuery ( ) ; break ; case Query :: MODE_TRUNCATE : $ this -> parseTruncateQuery ( ) ; break ; case Query :: MODE_ADVANCED : throw new QueryBuilderParseException ( "Query mode not yet implemented!" ) ; break ; // @codeCoverageIgnore case Query :: MODE_NONE : throw new QueryBuilderParseException ( "Query has no mode yet!" ) ; break ; // @codeCoverageIgnore default : throw new QueryBuilderParseException ( "Query mode is invalid!" ) ; break ; // @codeCoverageIgnore } // Set parsed to true. $ this -> parsed = true ; }
Parse the Query object.

@throws QueryBuilderParseException
@throws \Exception
Parse the Query object .