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.
Author: Michael J. Rubinsky ([email protected])
Mostra file Open project: horde/horde Class Usage Examples

Public Methods

Method 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 method

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.
return Kronolith_Resource_Single

checkResources() public static method

Handles checking for resource availability or cancellation.
public static checkResources ( Kronolith_Event $event ) : array
$event Kronolith_Event The event whose resources we are saving.
return array An array of accepted resource objects.

getResource() public static method

public static getResource ( $id )