134 |
return $this->_db_options["count_column"]; |
return $this->_db_options["count_column"]; |
135 |
} |
} |
136 |
|
|
|
|
|
|
/** |
|
|
* this gets the count column |
|
|
* |
|
|
* @return string |
|
|
*/ |
|
|
function get_count_column() { |
|
|
return $this->_db_options["count_column"]; |
|
|
} |
|
|
|
|
137 |
// This functions joins an arbitrary number of clauses using the |
// This functions joins an arbitrary number of clauses using the |
138 |
// specified connector. It can be used in one of the following two |
// specified connector. It can be used in one of the following two |
139 |
// ways: |
// ways: |
335 |
* @return string |
* @return string |
336 |
*/ |
*/ |
337 |
function build_groupby_clause() { |
function build_groupby_clause() { |
338 |
$groupby = $this->_groupby_clause; |
$groupby = $this->_db_options["groupby_clause"]; |
339 |
if ($groupby) { |
if ($groupby) { |
340 |
$groupby = " GROUP BY $groupby "; |
$groupby = " GROUP BY $groupby "; |
341 |
} |
} |
421 |
* Do the query to the DB and pull in all of |
* Do the query to the DB and pull in all of |
422 |
* the records locally. |
* the records locally. |
423 |
* |
* |
424 |
|
* @return boolean - the query passed/failed. |
425 |
*/ |
*/ |
426 |
function do_query() { |
function do_query() { |
427 |
//execute the sql query. |
//execute the sql query. |
428 |
//we don't actually get the results of |
//we don't actually get the results of |
429 |
//the query here, when just execute it. |
//the query here, when just execute it. |
430 |
user_error("SQLDataListSource::do_query() - Child must override"); |
user_error("SQLDataListSource::do_query() - Child must override"); |
431 |
|
return false; |
432 |
} |
} |
433 |
|
|
434 |
/** |
/** |
439 |
*/ |
*/ |
440 |
function get_next_data_row() { |
function get_next_data_row() { |
441 |
user_error("SQLDataListSource::get_next_data_row() - Child must override"); |
user_error("SQLDataListSource::get_next_data_row() - Child must override"); |
442 |
|
return array(); |
443 |
} |
} |
444 |
|
|
445 |
/** |
/** |