public function prep($values = null)
    {
        $hash = $this->queryHash();

        $prepOnly = true;

        if (is_array($values)) {

            $prepOnly = false;

        }

        if ($this->oosql_prepParams) {
            $this->oosql_stmt = $this->prepare(trim($this->sql()), $this->oosql_prepParams);
        } else {
            $this->oosql_stmt = $this->prepare(trim($this->sql()));
        }



        if ($prepOnly) {

            return $this->oosql_stmt;

        }

        return $this->execBound($this->oosql_stmt, $values);
    }
public function prep($values = null)
    {
        $hash = $this->queryHash();

        $prepOnly = true;

        if (is_array($values)) {

            $prepOnly = false;

        }

        if ($this->oosql_prepParams) {
            $this->oosql_stmt = $this->prepare(trim($this->sql()), $this->oosql_prepParams);
        } else {
            $this->oosql_stmt = $this->prepare(trim($this->sql()));
        }



        if ($prepOnly) {

            return $this->oosql_stmt;

        }

        return $this->execBound($this->oosql_stmt, $values);
    }
public function prep ( $ values = null ) { $ hash = $ this -> queryHash ( ) ; $ prepOnly = true ; if ( is_array ( $ values ) ) { $ prepOnly = false ; } if ( $ this -> oosql_prepParams ) { $ this -> oosql_stmt = $ this -> prepare ( trim ( $ this -> sql ( ) ) , $ this -> oosql_prepParams ) ; } else { $ this -> oosql_stmt = $ this -> prepare ( trim ( $ this -> sql ( ) ) ) ; } if ( $ prepOnly ) { return $ this -> oosql_stmt ; } return $ this -> execBound ( $ this -> oosql_stmt , $ values ) ; }
Prepare a query statement
@param array $values Bound values if any
@return mixed A \PDOStatement object or the boolean return of PDOStatement::execute
Prepare a query statement