PHP Class Whups_Query, horde

Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$id integer Query id.
$name string The full name of the query.
$parameters array
$query array
$slug string The query slug (short name).

Protected Properties

Свойство Type Description
$_qManager Whups_Query_Manager

Méthodes publiques

Méthode Description
__construct ( Whups_Query_Manager &$qManager, array $qDetails = [] ) Constructor
delete ( ) Delete this object from the backend permanently.
deleteNode ( $pathstring )
feedLink ( ) : array Returns data for this query's feed.
getTabs ( Horde_Variables $vars ) Tab operations for this query.
hasPermission ( string $userid, integer $permission, string $creator = null ) : boolean Checks to see if a user has a given permission.
hoist ( $pathstring )
insertBranch ( $pathstring, $type )
insertCriterion ( $pathstring, $criterion, $cvalue, $operator, $value )
pathToForm ( Horde_Variables &$vars ) : string Path to form
pathToString ( &$path )
reduce ( $method, &$vars ) Bottom up traversal.
save ( ) Saves any changes to this object to the backend permanently. New objects are added instead.
stringToPath ( $pathstring )
textOperators ( ) : array Returns human readable descriptions of all operator types.
walk ( &$obj, $method ) Top down traversal.

Méthodes protégées

Méthode Description
_getParameterName ( $value )
_reduce ( &$node, $method, &$vars )
_walk ( &$node, &$more, &$path, &$obj, $method )

Method Details

__construct() public méthode

Constructor
public __construct ( Whups_Query_Manager &$qManager, array $qDetails = [] )
$qManager Whups_Query_Manager
$qDetails array

_getParameterName() protected méthode

protected _getParameterName ( $value )

_reduce() protected méthode

protected _reduce ( &$node, $method, &$vars )

_walk() protected méthode

protected _walk ( &$node, &$more, &$path, &$obj, $method )

delete() public méthode

Delete this object from the backend permanently.
public delete ( )

deleteNode() public méthode

public deleteNode ( $pathstring )

getTabs() public méthode

Tab operations for this query.
public getTabs ( Horde_Variables $vars )
$vars Horde_Variables

hasPermission() public méthode

Checks to see if a user has a given permission.
public hasPermission ( string $userid, integer $permission, string $creator = null ) : boolean
$userid string The userid of the user.
$permission integer A Horde_Perms::* constant to test for.
$creator string The creator of the event.
Résultat boolean Whether or not $userid has $permission.

hoist() public méthode

public hoist ( $pathstring )

insertBranch() public méthode

public insertBranch ( $pathstring, $type )

insertCriterion() public méthode

public insertCriterion ( $pathstring, $criterion, $cvalue, $operator, $value )

pathToForm() public méthode

Path to form
public pathToForm ( Horde_Variables &$vars ) : string
$vars Horde_Variables
Résultat string

pathToString() public static méthode

public static pathToString ( &$path )

reduce() public méthode

Bottom up traversal.
public reduce ( $method, &$vars )

save() public méthode

Saves any changes to this object to the backend permanently. New objects are added instead.
public save ( )

stringToPath() public static méthode

public static stringToPath ( $pathstring )

textOperators() public static méthode

Returns human readable descriptions of all operator types.
public static textOperators ( ) : array
Résultat array Hash with operator types and descriptions.

walk() public méthode

Top down traversal.
public walk ( &$obj, $method )

Property Details

$_qManager protected_oe property

protected Whups_Query_Manager $_qManager
Résultat Whups_Query_Manager

$id public_oe property

Query id.
public int $id
Résultat integer

$name public_oe property

The full name of the query.
public string $name
Résultat string

$parameters public_oe property

public array $parameters
Résultat array

$query public_oe property

public array $query
Résultat array

$slug public_oe property

The query slug (short name).
public string $slug
Résultat string