PHP Class Kronolith_FreeBusy_View, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information.
Author: Mike Cochrane ([email protected])
Author: Jan Schneider ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_end
$_endHour
$_optionalMembers
$_optionalResourceMembers
$_requiredMembers
$_requiredResourceMembers
$_start
$_startHour
$_timeBlocks

Public Methods

Method Description
addOptionalMember ( Horde_Icalendar_Vfreebusy $vFreebusy ) Adds an optional attendee
addOptionalResourceMember ( Horde_Icalendar_Vfreebusy $vFreebusy ) Adds an optional resource
addRequiredMember ( Horde_Icalendar_Vfreebusy $vFreebusy ) Adds a required attendee
addRequiredResourceMember ( Horde_Icalendar_Vfreebusy $vFreebusy ) Adds a required resource
factory ( string $view ) : mixed Attempts to return a concrete Kronolith_FreeBusy_View instance based on $view.
render ( Horde_Date $day = null ) : string Renders the fb view
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.

Protected Methods

Method Description
_getBlocks ( Horde_Icalendar_Vfreebusy $member, array $periods, string $blockfile, string $label ) : string Render the blocks
_hours ( )
_render ( Horde_Date $day = null )
_title ( )

Method Details

_getBlocks() protected method

Render the blocks
protected _getBlocks ( Horde_Icalendar_Vfreebusy $member, array $periods, string $blockfile, string $label ) : string
$member Horde_Icalendar_Vfreebusy Member's freebusy info
$periods array Free periods
$blockfile string Template file to use for blocks
$label string Label to use
return string The block html

_hours() abstract protected method

abstract protected _hours ( )

_render() abstract protected method

abstract protected _render ( Horde_Date $day = null )
$day Horde_Date

_title() abstract protected method

abstract protected _title ( )

addOptionalMember() public method

Adds an optional attendee
public addOptionalMember ( Horde_Icalendar_Vfreebusy $vFreebusy )
$vFreebusy Horde_Icalendar_Vfreebusy

addOptionalResourceMember() public method

Adds an optional resource
public addOptionalResourceMember ( Horde_Icalendar_Vfreebusy $vFreebusy )
$vFreebusy Horde_Icalendar_Vfreebusy

addRequiredMember() public method

Adds a required attendee
public addRequiredMember ( Horde_Icalendar_Vfreebusy $vFreebusy )
$vFreebusy Horde_Icalendar_Vfreebusy

addRequiredResourceMember() public method

Adds a required resource
public addRequiredResourceMember ( Horde_Icalendar_Vfreebusy $vFreebusy )
$vFreebusy Horde_Icalendar_Vfreebusy

factory() public static method

Attempts to return a concrete Kronolith_FreeBusy_View instance based on $view.
public static factory ( string $view ) : mixed
$view string The type of concrete Kronolith_FreeBusy_View subclass to return.
return mixed The newly created concrete Kronolith_FreeBusy_View instance, or false on an error.

render() public method

Renders the fb view
public render ( Horde_Date $day = null ) : string
$day Horde_Date The day to render
return string The html of the rendered fb view.

singleton() public static method

This method must be invoked as: $var = &Kronolith_FreeBusy_View::singleton()
public static singleton ( string $view ) : mixed
$view string The type of concrete Kronolith_FreeBusy_View subclass to return.
return mixed The created concrete Kronolith_FreeBusy_View instance, or false on an error.

Property Details

$_end protected_oe property

protected $_end

$_endHour protected_oe property

protected $_endHour

$_optionalMembers protected_oe property

protected $_optionalMembers

$_optionalResourceMembers protected_oe property

protected $_optionalResourceMembers

$_requiredMembers protected_oe property

protected $_requiredMembers

$_requiredResourceMembers protected_oe property

protected $_requiredResourceMembers

$_start protected_oe property

protected $_start

$_startHour protected_oe property

protected $_startHour

$_timeBlocks protected_oe property

protected $_timeBlocks