PHP 클래스 Horde_Timezone_Zone, horde

저자: Jan Schneider ([email protected])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

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