Property | Type | Description | |
---|---|---|---|
$_id | integer | Resource's internal id | |
$_lock | boolean | integer | Cache the lock of this resource. If not locked, is false. | |
$_params | array | Contains: - name: Display name of resource. - calendar: The calendar associated with this resource. - description: Resource description. - email: An email address for the resource. (Currently not used) - members: Member resources, if this is a group. - response_type: A RESPONSETYPE_* constant | |
$_share | Horde_Share_Object |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) : Kronolith_Resource_Base | Const'r | |
addEvent ( Kronolith_Event $event ) | Adds $event to this resource's calendar - thus blocking the time for any other event. | |
get ( string $property ) : mixed | Implemented to stand in as a share object. | |
getDriver ( ) : Kronolith_Driver_Resource_ | Get a storage driver instance for the resource. | |
getFreeBusy ( integer $startstamp = null, integer $endstamp = null, boolean $asObject = false, boolean $json = false ) : mixed | 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. | |
getId ( ) : string | Obtain the resource's internal identifier. | |
getPermission ( ) | ||
getResponse ( Kronolith_Event $event ) : integer | Check availability and return an appropriate Kronolith response code. | |
getResponseType ( ) : integer | Get ResponseType for this resource. | |
hasPermission ( string $user, integer $permission = Horde_Perms::READ, $restrict = null ) : boolean | Return permission for the specified user for this Resource. | |
isFree ( Kronolith_Event $event ) : boolean | Determine if event is free for specified time | |
lock ( ) : boolean | Locks the resource. | |
removeEvent ( Kronolith_Event $event ) | Remove this event from resource's calendar | |
save ( ) : Kronolith_Resource_Base | Save resource to storage. | |
set ( string $property, mixed $value ) : void | Allow setting of properties | |
setPermission ( $perm ) | ||
share ( ) | ||
toJson ( ) : array | Return this resource's parameters in a hash. | |
unlock ( ) | Remove a previous lock. |
public __construct ( array $params = [] ) : Kronolith_Resource_Base | ||
$params | array | |
return | Kronolith_Resource_Base |
abstract public addEvent ( Kronolith_Event $event ) | ||
$event | Kronolith_Event | The event to add to this resource's calendar, thus blocking it's availability. |
public getDriver ( ) : Kronolith_Driver_Resource_ | ||
return | Kronolith_Driver_Resource_ |
abstract public getFreeBusy ( integer $startstamp = null, integer $endstamp = null, boolean $asObject = false, boolean $json = false ) : mixed | ||
$startstamp | integer | The starting timestamp of the fb interval. |
$endstamp | integer | The ending timestamp of the fb interval. |
$asObject | boolean | Return the fb info as an object? |
$json | boolean | Return the fb info as JSON? |
return | mixed | string|Horde_Icalendar_Vfreebusy The Freebusy object or the iCalendar text. |
public getResponse ( Kronolith_Event $event ) : integer | ||
$event | Kronolith_Event | The event to check on |
return | integer | Kronolith::RESPONSE* constant |
abstract public getResponseType ( ) : integer | ||
return | integer | The response type for this resource. A Kronolith_Resource::RESPONSE_TYPE_* constant. |
abstract public removeEvent ( Kronolith_Event $event ) | ||
$event | Kronolith_Event | The event to remove from the resource's calendar. |
public save ( ) : Kronolith_Resource_Base | ||
return | Kronolith_Resource_Base |
protected array $_params | ||
return | array |