|
| __construct ($queryID=NULL, $action=NULL, $columns=NULL, $tables=NULL, $conditions=NULL, $groups=NULL, $orderby=NULL, $limit=NULL, $priority=NULL) |
|
| show () |
|
| setQueryId ($queryID) |
|
| setAction ($action) |
|
| setPriority ($priority) |
|
| setColumnList ($columnList) |
|
| setColumns ($columns) |
|
| setTables ($tables) |
|
| setSubquery ($subquery) |
|
| setConditions ($conditions) |
|
| setGroups ($groups) |
|
| setOrder ($order) |
|
| getOrder () |
|
| setLimit ($limit=NULL) |
|
| select ($columns=NULL) |
|
| from ($tables) |
|
| where ($conditions) |
|
| groupBy ($groups) |
|
| orderBy ($order) |
|
| limit ($limit) |
|
| getAction () |
|
| getPriority () |
|
| usesClickCount () |
|
| getClickCountColumns () |
|
| getSelectString ($with_values=TRUE) |
|
| getUpdateString ($with_values=TRUE) |
|
| getInsertString ($with_values=TRUE) |
|
| getTables () |
|
| getFromString ($with_values=TRUE) |
|
| getWhereString ($with_values=TRUE, $with_optimization=TRUE) |
|
| getGroupByString () |
|
| getOrderByString () |
|
| getLimit () |
|
| getLimitString () |
|
| getFirstTableName () |
|
| getArguments () |
|
| __construct ($error=0, $message= 'success') |
|
| setError ($error=0) |
|
| getError () |
|
| setHttpStatusCode ($code= '200') |
|
| getHttpStatusCode () |
|
| setMessage ($message= 'success', $type=NULL) |
|
| getMessage () |
|
| add ($key, $val) |
|
| adds ($object) |
|
| get ($key) |
|
| gets () |
|
| getVariables () |
|
| getObjectVars () |
|
| toBool () |
|
| toBoolean () |
|
Definition at line 9 of file Query.class.php.
Query::__construct |
( |
|
$queryID = NULL , |
|
|
|
$action = NULL , |
|
|
|
$columns = NULL , |
|
|
|
$tables = NULL , |
|
|
|
$conditions = NULL , |
|
|
|
$groups = NULL , |
|
|
|
$orderby = NULL , |
|
|
|
$limit = NULL , |
|
|
|
$priority = NULL |
|
) |
| |
constructor
- Parameters
-
string | $queryID | |
string | $action | |
string | array | $columns | |
string | array | $tables | |
string | array | $conditions | |
string | array | $groups | |
string | array | $orderby | |
int | $limit | |
string | $priority | |
- Returns
- void
Definition at line 97 of file Query.class.php.
Query::getClickCountColumns |
( |
| ) |
|
Query::getFirstTableName |
( |
| ) |
|
Query::getFromString |
( |
|
$with_values = TRUE | ) |
|
from table_a from table_a inner join table_b on x=y from (select * from table a) as x from (select * from table t) as x inner join table y on y.x
- Parameters
-
- Returns
- string
Definition at line 459 of file Query.class.php.
Query::getGroupByString |
( |
| ) |
|
Query::getInsertString |
( |
|
$with_values = TRUE | ) |
|
Return insert sql
- Parameters
-
- Returns
- string
Definition at line 415 of file Query.class.php.
Query::getLimitString |
( |
| ) |
|
Query::getOrderByString |
( |
| ) |
|
Query::getSelectString |
( |
|
$with_values = TRUE | ) |
|
Return select sql
- Parameters
-
- Returns
- string
Definition at line 372 of file Query.class.php.
Query::getUpdateString |
( |
|
$with_values = TRUE | ) |
|
Return update sql
- Parameters
-
- Returns
- string
Definition at line 396 of file Query.class.php.
Query::getWhereString |
( |
|
$with_values = TRUE , |
|
|
|
$with_optimization = TRUE |
|
) |
| |
Return where sql
- Parameters
-
boolean | $with_values | |
boolean | $with_optimization | |
- Returns
- string
Definition at line 494 of file Query.class.php.
Query::groupBy |
( |
|
$groups | ) |
|
Query::select |
( |
|
$columns = NULL | ) |
|
Query::setAction |
( |
|
$action | ) |
|
Query::setColumnList |
( |
|
$columnList | ) |
|
Query::setColumns |
( |
|
$columns | ) |
|
Query::setConditions |
( |
|
$conditions | ) |
|
Query::setGroups |
( |
|
$groups | ) |
|
Query::setLimit |
( |
|
$limit = NULL | ) |
|
Query::setOrder |
( |
|
$order | ) |
|
Query::setPriority |
( |
|
$priority | ) |
|
Query::setQueryId |
( |
|
$queryID | ) |
|
Query::setSubquery |
( |
|
$subquery | ) |
|
Query::setTables |
( |
|
$tables | ) |
|
Query::usesClickCount |
( |
| ) |
|
Check if current query uses the click count attribute For CUBRID, this statement uses the click count feature. For the other databases, using this attribute causes a query to produce both a select and an update
Definition at line 349 of file Query.class.php.
Query::where |
( |
|
$conditions | ) |
|
Query::$columnList = NULL |
The documentation for this class was generated from the following file: