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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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