private function getDeleteQuery()
    {
        $fromClause = null;

        if (isset($this->parts['from'][0]['alias'])) {
            $fromClause = $this->parts['from'][0]['alias'].' ';
        }

        $fromClause .= 'FROM '.$this->getFromClause();

        return 'DELETE '.$fromClause.
               (($this->parts['where'] !== null) ? ' WHERE '.$this->parts['where'] : null);
    }
private function getDeleteQuery()
    {
        $fromClause = null;

        if (isset($this->parts['from'][0]['alias'])) {
            $fromClause = $this->parts['from'][0]['alias'].' ';
        }

        $fromClause .= 'FROM '.$this->getFromClause();

        return 'DELETE '.$fromClause.
               (($this->parts['where'] !== null) ? ' WHERE '.$this->parts['where'] : null);
    }
private function getDeleteQuery ( ) { $ fromClause = null ; if ( isset ( $ this -> parts [ 'from' ] [ 0 ] [ 'alias' ] ) ) { $ fromClause = $ this -> parts [ 'from' ] [ 0 ] [ 'alias' ] . ' ' ; } $ fromClause .= 'FROM ' . $ this -> getFromClause ( ) ; return 'DELETE ' . $ fromClause . ( ( $ this -> parts [ 'where' ] !== null ) ? ' WHERE ' . $ this -> parts [ 'where' ] : null ) ; }
Generates a "DELETE" query.

@return string The "DELETE" query.
Generates a DELETE query .