Base class for Kronolith resources. Partially presents a Horde_Share_Object
interface.
Copyright 2009-2012 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.
Methods summary
public
Kronolith_Resource
|
#
__construct( array $params = array() )
Const'r
Parameters
Returns
|
public
mixed
|
#
getId( )
Obtain the resource's internal identifier.
Obtain the resource's internal identifier.
Returns
mixed The id.
|
public
|
#
set( string $property, mixed $value )
Allow setting of properties
Allow setting of properties
Parameters
- $property
- The property to set
- $value
- The value to set to
|
public
unknown_type
|
#
hasPermission( mixed $user, mixed $permission = Horde_Perms::READ, mixed $restrict = null )
Parameters
- $user
-
- $permission
-
- $restrict
-
Returns
unknown_type
Todo:
need to fine tune this
|
public
unknown_type
|
#
get( mixed $property )
Implemented to stand in as a share object.
Implemented to stand in as a share object.
Parameters
Returns
unknown_type
|
public
Kronolith_Resource
|
#
save( )
Save resource to storage.
Save resource to storage.
Returns
Throws
|
public
Kronolith_Driver_Resource
|
#
getDriver( )
Get a storage driver instance for the resource. For now, just instantiate
it here, in future, probably inject it in the const'r.
Get a storage driver instance for the resource. For now, just instantiate
it here, in future, probably inject it in the const'r.
Returns
|
public
integer
|
#
getResponse( Kronolith_Event $event )
Check availability and return an appropriate Kronolith response code.
Check availability and return an appropriate Kronolith response code.
Parameters
- $event
- The event to check on
Returns
integer Kronolith::RESPONSE* constant
|
abstract public
unknown_type
|
#
isFree( mixed $event )
Determine if event is free for specified time
Determine if event is free for specified time
Parameters
Returns
unknown_type
|
abstract public
unknown_type
|
#
addEvent( mixed $event )
Adds $event to this resource's calendar - thus blocking the time
for any other event.
Adds $event to this resource's calendar - thus blocking the time
for any other event.
Parameters
Returns
unknown_type
|
abstract public
unknown_type
|
#
removeEvent( mixed $event )
Remove this event from resource's calendar
Remove this event from resource's calendar
Parameters
Returns
unknown_type
|
abstract public
unknown_type
|
#
getFreeBusy( )
Obtain the freebusy information for this resource. Takes into account
if this is a group of resources or not. (Returns the cumulative FB info
for all the resources in the group.
Obtain the freebusy information for this resource. Takes into account
if this is a group of resources or not. (Returns the cumulative FB info
for all the resources in the group.
Returns
unknown_type
|
abstract public
unknown_type
|
#
setId( integer $id )
Sets the current resource's id. Must not be an existing resource.
Sets the current resource's id. Must not be an existing resource.
Parameters
- $id
- The id for this resource
Returns
unknown_type
|
abstract public
unknown_type
|
#
getResponseType( )
Get ResponseType for this resource.
Get ResponseType for this resource.
Returns
unknown_type
|