|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| select () | |
| from ($name) | |
| wherePartitionKey ($value=null) | |
| whereRowKey ($value=null) | |
| where ($condition, $value=null, $cond= '') | |
| andWhere ($condition, $value=null) | |
| orWhere ($condition, $value=null) | |
| orderBy ($column, $direction= 'asc') | |
| top ($top=null) | |
| assembleQueryString ($urlEncode=false) | |
| assembleFrom ($includeParentheses=true) | |
| assembleQuery () | |
| __toString () | |
Protected Member Functions | |
| _quoteInto ($text, $value=null) | |
| _replaceOperators ($text) | |
Protected Attributes | |
| $_from = '' | |
| $_where = array() | |
| $_orderBy = array() | |
| $_top = null | |
| $_partitionKey = null | |
| $_rowKey = null | |
Definition at line 30 of file TableEntityQuery.php.
| __toString | ( | ) |
__toString overload
Definition at line 322 of file TableEntityQuery.php.

| _quoteInto | ( | $ | text, |
| $ | value = null |
||
| ) | [protected] |
Quotes a variable into a condition
| string | $text | Condition, can contain question mark(s) (?) for parameter insertion. |
| string | array | $value | Value(s) to insert in question mark (?) parameters. |
Definition at line 278 of file TableEntityQuery.php.

| _replaceOperators | ( | $ | text | ) | [protected] |
Replace operators
| string | $text |
Definition at line 301 of file TableEntityQuery.php.

| andWhere | ( | $ | condition, |
| $ | value = null |
||
| ) |
Add where clause with AND condition
| string | $condition | Condition, can contain question mark(s) (?) for parameter insertion. |
| string | array | $value | Value(s) to insert in question mark (?) parameters. |
Definition at line 153 of file TableEntityQuery.php.

| assembleFrom | ( | $ | includeParentheses = true | ) |
Assemble from
| boolean | $includeParentheses | Include parentheses? () |
Definition at line 231 of file TableEntityQuery.php.

| assembleQuery | ( | ) |
Assemble full query
Definition at line 259 of file TableEntityQuery.php.


| assembleQueryString | ( | $ | urlEncode = false | ) |
Assembles the query string
| boolean | $urlEncode | Apply URL encoding to the query string |
Definition at line 201 of file TableEntityQuery.php.

| from | ( | $ | name | ) |
From clause
| string | $name | Table name to select entities from |
Definition at line 90 of file TableEntityQuery.php.
| orderBy | ( | $ | column, |
| $ | direction = 'asc' |
||
| ) |
OrderBy clause
| string | $column | Column to sort by |
| string | $direction | Direction to sort (asc/desc) |
Definition at line 177 of file TableEntityQuery.php.
| orWhere | ( | $ | condition, |
| $ | value = null |
||
| ) |
Add where clause with OR condition
| string | $condition | Condition, can contain question mark(s) (?) for parameter insertion. |
| string | array | $value | Value(s) to insert in question mark (?) parameters. |
Definition at line 165 of file TableEntityQuery.php.

| select | ( | ) |
Select clause
Definition at line 79 of file TableEntityQuery.php.
| top | ( | $ | top = null | ) |
| where | ( | $ | condition, |
| $ | value = null, |
||
| $ | cond = '' |
||
| ) |
Add where clause
| string | $condition | Condition, can contain question mark(s) (?) for parameter insertion. |
| string | array | $value | Value(s) to insert in question mark (?) parameters. |
| string | $cond | Condition for the clause (and/or/not) |
Definition at line 128 of file TableEntityQuery.php.


| wherePartitionKey | ( | $ | value = null | ) |
Specify partition key
| string | $value | Partition key to query for |
Definition at line 102 of file TableEntityQuery.php.
| whereRowKey | ( | $ | value = null | ) |
Specify row key
| string | $value | Row key to query for |
Definition at line 114 of file TableEntityQuery.php.
$_from = '' [protected] |
Definition at line 37 of file TableEntityQuery.php.
$_orderBy = array() [protected] |
Definition at line 51 of file TableEntityQuery.php.
$_partitionKey = null [protected] |
Definition at line 65 of file TableEntityQuery.php.
$_rowKey = null [protected] |
Definition at line 72 of file TableEntityQuery.php.
$_top = null [protected] |
Definition at line 58 of file TableEntityQuery.php.
$_where = array() [protected] |
Definition at line 44 of file TableEntityQuery.php.