PHP Class Kronolith_Resource, horde
Copyright 2009-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
Afficher le fichier
Open project: horde/horde
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
addResource ( array $info ) : Kronolith_Resource_Single |
Adds a new resource to storage |
|
checkResources ( Kronolith_Event $event ) : array |
Handles checking for resource availability or cancellation. |
|
getResource ( $id ) |
|
|
Method Details
addResource()
public static méthode
Adds a new resource to storage
public static addResource ( array $info ) : Kronolith_Resource_Single |
$info |
array |
The resource array.
- name: (string) The resource name.
- desc: (string) The resource description.
- email: (string) An email address for the resource, if
needed.
- response_type: (integer) The RESPONSETYPE_* constant.
- group: (boolean) Flag resource as a group.
- members: (array) An array of resource ids if this is a group. |
Résultat |
Kronolith_Resource_Single |
|
checkResources()
public static méthode
Handles checking for resource availability or cancellation.
public static checkResources ( Kronolith_Event $event ) : array |
$event |
Kronolith_Event |
The event whose resources we are saving. |
Résultat |
array |
An array of accepted resource objects. |
getResource()
public static méthode