PHP Класс Kronolith_Resource_Group, 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.
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Kronolith_Resource_Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_type

Открытые методы

Метод Описание
__construct ( array $params ) : Kronolith_Resource Const'r
addEvent ( Kronolith_Event $event ) Adds $event to an available member resource's calendar.
get ( string $property ) : mixed Override the get method to see if we have a selected resource. If so, return the resource's property value, otherwise, return the group's property value.
getFreeBusy ( $startstamp = null, $endstamp = null, $asObject = false, $json = false ) Obtain the freebusy information for this resource.
getId ( ) : string Obtain the resource's internal identifier, taking into account whether or not we have validated/selected a resource for this group yet.
getResponseType ( ) Group resources only make sense for RESPONSETYPE_AUTO
isFree ( Kronolith_Event $event ) : boolean Determine if the resource is free during the time period for the supplied event.
removeEvent ( Kronolith_Event $event ) Remove this event from resource's calendar
setId ( integer $id ) Sets the current resource's id. Must not be an existing resource.

Описание методов

__construct() публичный Метод

Const'r
public __construct ( array $params ) : Kronolith_Resource
$params array
Результат Kronolith_Resource

addEvent() публичный Метод

Adds $event to an available member resource's calendar.
public addEvent ( Kronolith_Event $event )
$event Kronolith_Event

get() публичный Метод

Override the get method to see if we have a selected resource. If so, return the resource's property value, otherwise, return the group's property value.
public get ( string $property ) : mixed
$property string The property to get.
Результат mixed The requested property's value.

getFreeBusy() публичный Метод

Obtain the freebusy information for this resource.
public getFreeBusy ( $startstamp = null, $endstamp = null, $asObject = false, $json = false )

getId() публичный Метод

Obtain the resource's internal identifier, taking into account whether or not we have validated/selected a resource for this group yet.
public getId ( ) : string
Результат string The id.

getResponseType() публичный Метод

Group resources only make sense for RESPONSETYPE_AUTO
public getResponseType ( )

isFree() публичный Метод

Determine if the resource is free during the time period for the supplied event.
public isFree ( Kronolith_Event $event ) : boolean
$event Kronolith_Event The event to check availability for.
Результат boolean

removeEvent() публичный Метод

Remove this event from resource's calendar
public removeEvent ( Kronolith_Event $event )
$event Kronolith_Event

setId() публичный Метод

Sets the current resource's id. Must not be an existing resource.
public setId ( integer $id )
$id integer The id for this resource

Описание свойств

$_type защищенное свойство

protected $_type