| 1 |
<?php |
<?php |
| 2 |
// $Id: views_plugin_query.inc,v 1.1.2.1 2009/05/20 03:03:38 merlinofchaos Exp $ |
// $Id: views_plugin_query.inc,v 1.1.2.2 2009/07/01 15:36:26 merlinofchaos Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file views_plugin_query_default.inc |
* @file views_plugin_query_default.inc |
| 5 |
* Defines the base query class, which is the underlying layer in a View. |
* Defines the base query class, which is the underlying layer in a View. |
| 23 |
* Provide a countquery if this is true, otherwise provide a normal query. |
* Provide a countquery if this is true, otherwise provide a normal query. |
| 24 |
*/ |
*/ |
| 25 |
function query($get_count = FALSE) { } |
function query($get_count = FALSE) { } |
| 26 |
|
|
| 27 |
/** |
/** |
| 28 |
* Let modules modify the query just prior to finalizing it. |
* Let modules modify the query just prior to finalizing it. |
| 29 |
*/ |
*/ |
| 30 |
function alter(&$view) { } |
function alter(&$view) { } |
| 31 |
|
|
| 32 |
/** |
/** |
| 33 |
* Builds the necessary info to execute the query. |
* Builds the necessary info to execute the query. |
| 34 |
*/ |
*/ |
| 37 |
/** |
/** |
| 38 |
* Executes the query and fills the associated view object with according |
* Executes the query and fills the associated view object with according |
| 39 |
* values. |
* values. |
| 40 |
* |
* |
| 41 |
* Values to set: $view->result, $view->total_rows, $view->execute_time, |
* Values to set: $view->result, $view->total_rows, $view->execute_time, |
| 42 |
* $view->pager['current_page']. |
* $view->pager['current_page']. |
| 43 |
*/ |
*/ |
| 50 |
* discern where particular queries might be coming from. |
* discern where particular queries might be coming from. |
| 51 |
*/ |
*/ |
| 52 |
function add_signature(&$view) { } |
function add_signature(&$view) { } |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* Get aggregation info for group by queries. |
| 56 |
|
* |
| 57 |
|
* If NULL, aggregation is not allowed. |
| 58 |
|
*/ |
| 59 |
|
function get_aggregation_info() { } |
| 60 |
} |
} |