\Kronolith_FreeBusy_View_Month

This class represent a month of free busy information sets.

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

See the enclosed file LICENSE for license information.

Summary

Methods
Properties
Constants
addRequiredMember()
addOptionalMember()
addOptionalResourceMember()
addRequiredResourceMember()
render()
factory()
singleton()
$view
No constants found
_getBlocks()
_title()
_hours()
_render()
$_requiredMembers
$_optionalMembers
$_requiredResourceMembers
$_optionalResourceMembers
$_timeBlocks
$_startHour
$_endHour
$_start
$_end
$_days
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : string

This view type

Type

string

$_requiredMembers

$_requiredMembers : 

Type

$_optionalMembers

$_optionalMembers : 

Type

$_requiredResourceMembers

$_requiredResourceMembers : 

Type

$_optionalResourceMembers

$_optionalResourceMembers : 

Type

$_timeBlocks

$_timeBlocks : 

Type

$_startHour

$_startHour : 

Type

$_endHour

$_endHour : 

Type

$_start

$_start : 

Type

$_end

$_end : 

Type

$_days

$_days : integer

Number of days

Type

integer

Methods

addRequiredMember()

addRequiredMember(\Horde_Icalendar_Vfreebusy  $vFreebusy) 

Adds a required attendee

Parameters

\Horde_Icalendar_Vfreebusy $vFreebusy

addOptionalMember()

addOptionalMember(\Horde_Icalendar_Vfreebusy  $vFreebusy) 

Adds an optional attendee

Parameters

\Horde_Icalendar_Vfreebusy $vFreebusy

addOptionalResourceMember()

addOptionalResourceMember(\Horde_Icalendar_Vfreebusy  $vFreebusy) 

Adds an optional resource

Parameters

\Horde_Icalendar_Vfreebusy $vFreebusy

addRequiredResourceMember()

addRequiredResourceMember(\Horde_Icalendar_Vfreebusy  $vFreebusy) 

Adds a required resource

Parameters

\Horde_Icalendar_Vfreebusy $vFreebusy

render()

render(\Horde_Date  $day = null) : string

Renders the fb view

Parameters

\Horde_Date $day

The day to render

Returns

string —

The html of the rendered fb view.

factory()

factory(string  $view) : mixed

Attempts to return a concrete Kronolith_FreeBusy_View instance based on $view.

Parameters

string $view

The type of concrete Kronolith_FreeBusy_View subclass to return.

Returns

mixed —

The newly created concrete Kronolith_FreeBusy_View instance, or false on an error.

singleton()

singleton(string  $view) : mixed

Attempts to return a reference to a concrete Kronolith_FreeBusy_View instance based on $view. It will only create a new instance if no Kronolith_FreeBusy_View instance with the same parameters currently exists.

This method must be invoked as: $var = &Kronolith_FreeBusy_View::singleton()

Parameters

string $view

The type of concrete Kronolith_FreeBusy_View subclass to return.

Returns

mixed —

The created concrete Kronolith_FreeBusy_View instance, or false on an error.

_getBlocks()

_getBlocks(\Horde_Icalendar_Vfreebusy  $member, array  $periods, string  $blockfile, string  $label) : string

Render the blocks

Parameters

\Horde_Icalendar_Vfreebusy $member

Member's freebusy info

array $periods

Free periods

string $blockfile

Template file to use for blocks

string $label

Label to use

Returns

string —

The block html

_title()

_title() 

_hours()

_hours() 

_render()

_render(\Horde_Date  $day = null) 

Parameters

\Horde_Date $day