/** * Execute a simple query and return the resulting query object * * Simple here does not actually mean 'simple', ie. the query * executed here can be as complex as you like with a billion joins, * clauses and aggregate functions out the wazoo. * * The reason this is called simpleQuery is because it is for use * when a query is not going to change at runtime. So if you know * that a database query is always going to be the same, every time * the script runs, and does not need to be built at runtime, * (you can still substitute variables into the string), then the * simpleQuery method is ideal, however bear in mind that you cannot * use a Clause object with the simpleQuery method * @param string - The query string to be executed * @return {@link SimpleQuery} - a Query object containing * all the data resulting from the * query string passed. * @access public */ function create($query_string) { $query = new SimpleQuery($query_string); $query->doQuery(); return $query; }