\Kronolith_Resource

Utility class for dealing with Kronolith_Resource objects

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
addResource()
checkResources()
getResource()
No public properties found
RESPONSETYPE_NONE
RESPONSETYPE_AUTO
RESPONSETYPE_ALWAYS_ACCEPT
RESPONSETYPE_ALWAYS_DECLINE
RESPONSETYPE_MANUAL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

RESPONSETYPE_NONE

RESPONSETYPE_NONE

RESPONSETYPE_AUTO

RESPONSETYPE_AUTO

RESPONSETYPE_ALWAYS_ACCEPT

RESPONSETYPE_ALWAYS_ACCEPT

RESPONSETYPE_ALWAYS_DECLINE

RESPONSETYPE_ALWAYS_DECLINE

RESPONSETYPE_MANUAL

RESPONSETYPE_MANUAL

Methods

addResource()

addResource(array  $info) : \Kronolith_Resource_Single

Adds a new resource to storage

Parameters

array $info

The resource array.

  • name: (string) The resource name.
  • desc: (string) The resource description.
  • email: (string) An email address for the resource, if needed.
  • responsetype: (integer) The RESPONSETYPE* constant.
  • group: (boolean) Flag resource as a group.
  • members: (array) An array of resource ids if this is a group.

Returns

\Kronolith_Resource_Single

checkResources()

checkResources(\Kronolith_Event  $event) : array

Handles checking for resource availability or cancellation.

Parameters

\Kronolith_Event $event

The event whose resources we are saving.

Returns

array —

An array of accepted resource objects.

getResource()

getResource(  $id) 

Parameters

$id