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

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

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

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

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

        if ($this->groupBy) {
            $statement .= " " . $this->getGroupByString();
        }

        if ($this->having) {
            $statement .= " " . $this->getHavingString($usePlaceholders);
        }

        if ($this->orderBy) {
            $statement .= " " . $this->getOrderByString();
        }

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

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

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

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

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

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

        if ($this->groupBy) {
            $statement .= " " . $this->getGroupByString();
        }

        if ($this->having) {
            $statement .= " " . $this->getHavingString($usePlaceholders);
        }

        if ($this->orderBy) {
            $statement .= " " . $this->getOrderByString();
        }

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

        return $statement;
    }
private function getSelectStatement ( $ usePlaceholders = true ) { $ statement = "" ; if ( ! $ this -> isSelect ( ) ) { return $ statement ; } $ statement .= $ this -> getSelectString ( ) ; if ( $ this -> from ) { $ statement .= " " . $ this -> getFromString ( ) ; } if ( $ this -> where ) { $ statement .= " " . $ this -> getWhereString ( $ usePlaceholders ) ; } if ( $ this -> groupBy ) { $ statement .= " " . $ this -> getGroupByString ( ) ; } if ( $ this -> having ) { $ statement .= " " . $ this -> getHavingString ( $ usePlaceholders ) ; } if ( $ this -> orderBy ) { $ statement .= " " . $ this -> getOrderByString ( ) ; } if ( $ this -> limit ) { $ statement .= " " . $ this -> getLimitString ( ) ; } return $ statement ; }
Get the full SELECT statement.

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