src/Server/Asyn/Mysql/Miner.php
private function getDeleteStatement($usePlaceholders = true)
    {
        $statement = "";

        if (!$this->isDelete()) {
            return $statement;
        }

        $statement .= $this->getDeleteString();

        if ($this->from) {
            $statement .= " " . $this->getFromString();
        }

        if ($this->where) {
            $statement .= " " . $this->getWhereString($usePlaceholders);
        }

        // ORDER BY and LIMIT are only applicable when deleting from a single
        // table.
        if ($this->isDeleteTableFrom()) {
            if ($this->orderBy) {
                $statement .= " " . $this->getOrderByString();
            }

            if ($this->limit) {
                $statement .= " " . $this->getLimitString();
            }
        }

        return $statement;
    }
private function getDeleteStatement($usePlaceholders = true)
    {
        $statement = "";

        if (!$this->isDelete()) {
            return $statement;
        }

        $statement .= $this->getDeleteString();

        if ($this->from) {
            $statement .= " " . $this->getFromString();
        }

        if ($this->where) {
            $statement .= " " . $this->getWhereString($usePlaceholders);
        }

        // ORDER BY and LIMIT are only applicable when deleting from a single
        // table.
        if ($this->isDeleteTableFrom()) {
            if ($this->orderBy) {
                $statement .= " " . $this->getOrderByString();
            }

            if ($this->limit) {
                $statement .= " " . $this->getLimitString();
            }
        }

        return $statement;
    }
private function getDeleteStatement ( $ usePlaceholders = true ) { $ statement = "" ; if ( ! $ this -> isDelete ( ) ) { return $ statement ; } $ statement .= $ this -> getDeleteString ( ) ; if ( $ this -> from ) { $ statement .= " " . $ this -> getFromString ( ) ; } if ( $ this -> where ) { $ statement .= " " . $ this -> getWhereString ( $ usePlaceholders ) ; } // ORDER BY and LIMIT are only applicable when deleting from a single // table. if ( $ this -> isDeleteTableFrom ( ) ) { if ( $ this -> orderBy ) { $ statement .= " " . $ this -> getOrderByString ( ) ; } if ( $ this -> limit ) { $ statement .= " " . $ this -> getLimitString ( ) ; } } return $ statement ; }
Get the full DELETE statement.

@param  bool $usePlaceholders optional use ? placeholders, default true
@return string full DELETE statement
Get the full DELETE statement .