PHP Класс Horde_Timezone_Zone, horde

Автор: Jan Schneider ([email protected])
Показать файл Открыть проект

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

Свойство Тип Описание
$_info array Zone lines of this zone object.
$_name string The timezone ID.
$_tz A Horde_Timezone object.

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

Метод Описание
__construct ( string $name, Horde_Timezone $tz ) Constructor.
add ( array $info ) Adds a Zone line to this zone object.
setTzid ( string $name ) Sets the timezone ID.
toVtimezone ( Horde_Date $from = null, Horde_Date $to = null ) : Horde_Icalendar_Vtimezone Exports this zone to a VTIMEZONE component.

Защищенные методы

Метод Описание
_getDate ( integer $line ) : Horde_Date Calculates a date from the date columns of a Zone line.
_getOffset ( integer $line ) : array Calculates an offset from the offset column of a Zone line.

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

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

Constructor.
public __construct ( string $name, Horde_Timezone $tz )
$name string A timezone ID.
$tz Horde_Timezone A Horde_Timezone object. Used to retrieve rules for this timezone.

_getDate() защищенный Метод

Calculates a date from the date columns of a Zone line.
protected _getDate ( integer $line ) : Horde_Date
$line integer A line number.
Результат Horde_Date The date of this line.

_getOffset() защищенный Метод

Calculates an offset from the offset column of a Zone line.
protected _getOffset ( integer $line ) : array
$line integer A line number.
Результат array A hash describing the offset.

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

Adds a Zone line to this zone object.
public add ( array $info )
$info array A parsed Zone line or continuation line.

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

There are aliases for timezone IDs, it might be necessary to use one of those.
public setTzid ( string $name )
$name string A timezone ID.

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

Exports this zone to a VTIMEZONE component.
public toVtimezone ( Horde_Date $from = null, Horde_Date $to = null ) : Horde_Icalendar_Vtimezone
$from Horde_Date The earliest date that we need timezone definitions for.
$to Horde_Date The latest date.
Результат Horde_Icalendar_Vtimezone A VTIMEZONE component representing this timezone.

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

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

Zone lines of this zone object.
protected array $_info
Результат array

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

The timezone ID.
protected string $_name
Результат string

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

A Horde_Timezone object.
protected $_tz