PHP 클래스 Yasumi\Provider\Australia

상속: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
파일 보기 프로젝트 열기: azuyalabs/yasumi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timezone

공개 메소드들

메소드 설명
calculateAnzacDay ( ) ANZAC Day.
calculateAustraliaDay ( ) Australia Day.
calculateChristmasDay ( ) Christmas Day / Boxing Day.
calculateHoliday ( $shortName, array $names = [], $date, boolean $moveFromSaturday = true, boolean $moveFromSunday = true ) Function to simplify moving holidays to mondays if required
calculateLabourDay ( )
calculateNewYearHolidays ( ) Holidays associated with the start of the modern Gregorian calendar.
calculateQueensBirthday ( ) Queens Birthday.
initialize ( ) Initialize holidays for Australia.

메소드 상세

calculateAnzacDay() 공개 메소드

Anzac Day is a national day of remembrance in Australia and New Zealand that broadly commemorates all Australians and New Zealanders "who served and died in all wars, conflicts, and peacekeeping operations" Observed on 25 April each year.
public calculateAnzacDay ( )

calculateAustraliaDay() 공개 메소드

Australia Day is the official National Day of Australia. Celebrated annually on 26 January, it marks the anniversary of the 1788 arrival of the First Fleet of British Ships at Port Jackson, New South Wales, and the raising of the Flag of Great Britain at Sydney Cove by Governor Arthur Phillip. In present-day Australia, celebrations reflect the diverse society and landscape of the nation, and are marked by community and family events, reflections on Australian history, official community awards, and citizenship ceremonies welcoming new immigrants into the Australian community.

calculateChristmasDay() 공개 메소드

Christmas day, and Boxing day are public holidays in Australia, if they fall on the weekend they are moved to the next available weekday.

calculateHoliday() 공개 메소드

Function to simplify moving holidays to mondays if required
public calculateHoliday ( $shortName, array $names = [], $date, boolean $moveFromSaturday = true, boolean $moveFromSunday = true )
$shortName
$names array
$date
$moveFromSaturday boolean
$moveFromSunday boolean

calculateLabourDay() 공개 메소드

public calculateLabourDay ( )

calculateNewYearHolidays() 공개 메소드

New Year's Day is on January 1 and is the first day of a new year in the Gregorian calendar, which is used in Australia and many other countries. Due to its geographical position close to the International Date Line, Australia is one of the first countries in the world to welcome the New Year.

calculateQueensBirthday() 공개 메소드

The Queen's Birthday is an Australian public holiday but the date varies across states and territories. Australia celebrates this holiday because it is a constitutional monarchy, with the English monarch as head of state. Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. (Except QLD & WA)

initialize() 공개 메소드

Initialize holidays for Australia.
public initialize ( )

프로퍼티 상세

$timezone 공개적으로 프로퍼티

public $timezone