Class Whups_Query
public
|
|
public static
|
|
public static
|
|
public static
array
|
|
public
boolean
|
#
hasPermission( string $userid, integer $permission, string $creator = null )
Checks to see if a user has a given permission. |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
#
insertCriterion( mixed $pathstring, mixed $criterion, mixed $cvalue, mixed $operator, mixed $value )
|
public
|
|
public
|
integer |
TYPE_AND
Mode types. |
#
1
|
integer |
TYPE_OR
|
#
2
|
integer |
TYPE_NOT
|
#
3
|
integer |
TYPE_CRITERION
|
#
4
|
integer |
CRITERION_ID
Criterion types. |
#
1
|
integer |
CRITERION_QUEUE
|
#
2
|
integer |
CRITERION_TYPE
|
#
3
|
integer |
CRITERION_STATE
|
#
4
|
integer |
CRITERION_PRIORITY
|
#
5
|
integer |
CRITERION_OWNERS
|
#
7
|
integer |
CRITERION_REQUESTER
|
#
8
|
integer |
CRITERION_GROUPS
|
#
9
|
integer |
CRITERION_ADDED_COMMENT
|
#
11
|
integer |
CRITERION_COMMENT
|
#
12
|
integer |
CRITERION_SUMMARY
|
#
13
|
integer |
CRITERION_ATTRIBUTE
|
#
14
|
integer |
CRITERION_VERSION
|
#
15
|
integer |
CRITERION_TIMESTAMP
|
#
16
|
integer |
CRITERION_UPDATED
|
#
17
|
integer |
CRITERION_RESOLVED
|
#
18
|
integer |
CRITERION_ASSIGNED
|
#
19
|
integer |
CRITERION_DUE
|
#
20
|
integer |
OPERATOR_GREATER
Operators for integer fields. |
#
1
|
integer |
OPERATOR_LESS
|
#
2
|
integer |
OPERATOR_EQUAL
|
#
3
|
integer |
OPERATOR_CI_SUBSTRING
Operators for text fields. |
#
4
|
integer |
OPERATOR_CS_SUBSTRING
|
#
5
|
integer |
OPERATOR_WORD
|
#
6
|
integer |
OPERATOR_PATTERN
|
#
7
|
public
integer
|
$id
Query id. |
|
public
string
|
$name
The full name of the query. |
|
public
string
|
$slug
The query slug (short name). |
|
public
array
|
$query
|
#
array(
'type' => Whups_Query::TYPE_AND,
'children' => array())
|
public
array
|
$parameters
|
#
array()
|