protected function sql($sql = null, $replace = false)
    {
        if (null !== $sql) {
            if (!isset($this->oosql_sql[$this->oosql_table]) || $replace) {
                $this->oosql_sql[$this->oosql_table] = $sql;
            } else {

                $this->oosql_sql[$this->oosql_table] .= $sql;
            }
            return;
        }
        return $this->oosql_sql[$this->oosql_table];
    }
protected function sql($sql = null, $replace = false)
    {
        if (null !== $sql) {
            if (!isset($this->oosql_sql[$this->oosql_table]) || $replace) {
                $this->oosql_sql[$this->oosql_table] = $sql;
            } else {

                $this->oosql_sql[$this->oosql_table] .= $sql;
            }
            return;
        }
        return $this->oosql_sql[$this->oosql_table];
    }
protected function sql ( $ sql = null , $ replace = false ) { if ( null !== $ sql ) { if ( ! isset ( $ this -> oosql_sql [ $ this -> oosql_table ] ) || $ replace ) { $ this -> oosql_sql [ $ this -> oosql_table ] = $ sql ; } else { $ this -> oosql_sql [ $ this -> oosql_table ] .= $ sql ; } return ; } return $ this -> oosql_sql [ $ this -> oosql_table ] ; }
Append to the query string or return the current one
@param mixed $sql       SQL
@param boolean $replace Replace current query or not
Append to the query string or return the current one