[eluser]joke2k[/eluser]
hehehe sorry for my italian english!!
I'll try to explain me better.
I need the check , before that DB Library perform a db-query.
Reading the source, i think that to do this, i must check many variables :
Code:
var $ar_select = array();
var $ar_distinct = FALSE;
var $ar_from = array();
var $ar_join = array();
var $ar_where = array();
var $ar_like = array();
var $ar_groupby = array();
var $ar_having = array();
var $ar_limit = FALSE;
var $ar_offset = FALSE;
var $ar_order = FALSE;
var $ar_orderby = array();
var $ar_set = array();
var $ar_wherein = array();
var $ar_aliased_tables = array();
var $ar_store_array = array();
something like this:
Code:
... extends DB_active_rec ...
function is_empty_query() {
return ($this->ar_distinct == FALSE && is_empty($this->ar_from) && is_empty($this->ar_join) .... && ...);
}
...
sounds good?