PHP Трейт Yasumi\Provider\CommonHolidays

Trait containing commonly known holidays that are celebrated in all / many countries in the world.
Показать файл Открыть проект

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

Метод Описание
armisticeDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Armistice Day.
fathersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Father's Day.
internationalWorkersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday International Workers' Day.
mothersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Mother's Day.
newYearsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday New Year's Day.
stMartinsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday St. Martin's Day.
valentinesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Valentine's Day.
victoryInEuropeDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Victory in Europe Day.
worldAnimalDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday World Animal Day.

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

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

Armistice Day is commemorated every year on 11 November to mark the armistice signed between the Allies of World War I and Germany at Compiègne, France, for the cessation of hostilities on the Western Front of World War I. The date was declared a national holiday in many allied nations, to commemorate those members of the armed forces who were killed during war. An exception is Italy, where the end of the war is commemorated on 4 November, the day of the Armistice of Villa Giusti. In the Netherlands, Denmark and Norway World War I is not commemorated as the three countries all remained neutral.
public armisticeDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Armistice Day need to be created
$timezone string the timezone in which Armistice Day is celebrated
$locale string the locale for which Armistice Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

Father's Day is a celebration honoring fathers and celebrating fatherhood, paternal bonds, and the influence of fathers in society. Many countries celebrate it on the third Sunday of June, though it is also celebrated widely on other days by many other countries. Father's Day was created to complement Mother's Day, a celebration that honors mothers and motherhood.
public fathersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Father's Day need to be created
$timezone string the timezone in which Father's Day is celebrated
$locale string the locale for which Father's Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

International Workers' Day, also known as Labour Day in some places, is a celebration of laborers and the working classes that is promoted by the international labor movement, Anarchists, Socialists, and Communists and occurs every year on May Day, 1 May, an ancient European spring holiday. 1 May was chosen as the date for International Workers' Day by the Socialists and Communists of the Second International to commemorate the Haymarket affair in Chicago that occurred on 4 May, 1886.
public internationalWorkersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which International Workers' Day need to be created
$timezone string the timezone in which International Workers' Day is celebrated
$locale string the locale for which International Workers' Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

Mother's Day is a modern celebration honoring one's own mother, as well as motherhood, maternal bonds, and the influence of mothers in society. It is celebrated on various days in many parts of the world, most commonly in the months of March or May. It complements similar celebrations honoring family members, such as Father's Day and Siblings Day.
public mothersDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Mother's Day need to be created
$timezone string the timezone in which Mother's Day is celebrated
$locale string the locale for which Mother's Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

New Year's Day is observed on January 1, the first day of the year on the modern Gregorian calendar as well as the Julian calendar. As a date in the Gregorian calendar of Christendom, New Year's Day liturgically marked the Feast of the Circumcision of Christ, and is still observed as such in the Anglican Church and Lutheran Church. In present day, with most countries now using the Gregorian calendar as their de facto calendar, New Year's Day is probably the most celebrated public holiday, often observed with fireworks at the stroke of midnight as the new year starts in each time zone.
public newYearsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which New Year's Day need to be created
$timezone string the timezone in which New Year's Day is celebrated
$locale string the locale for which New Year's Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

St. Martin's Day, also known as the Feast of St. Martin, Martinstag or Martinmas, the Feast of St Martin of Tours or Martin le Miséricordieux, is a time for feasting celebrations. This is the time when autumn wheat seeding was completed, and the annual slaughter of fattened cattle produced "Martinmas beef". Historically, hiring fairs were held where farm laborers would seek new posts. November 11 is the feast day of St. Martin of Tours, who started out as a Roman soldier.
public stMartinsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which St. Martin's Day need to be created
$timezone string the timezone in which St. Martin's Day is celebrated
$locale string the locale for which St. Martin's Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

Valentine's Day, also known as Saint Valentine's Day or the Feast of Saint Valentine, is a celebration observed on February 14 each year. It is celebrated in many countries around the world, although it is not a public holiday in most of them. In 18th-century England, it evolved into an occasion in which lovers expressed their love for each other by presenting flowers, offering confectionery, and sending greeting cards (known as "valentines").
public valentinesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Valentine's Day need to be created
$timezone string the timezone in which Valentine's Day is celebrated
$locale string the locale for which Valentine's Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

Victory in Europe Day, generally known as V-E Day, VE Day, or simply V Day was the public holiday celebrated on 8 May 1945 (7 May in Commonwealth realms) to mark the formal acceptance by the Allies of World War II of Nazi Germany's unconditional surrender of its armed forces. It thus marked the end of World War II in Europe. Some countries commemorate the end of the war on a different date.
public victoryInEuropeDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Victory in Europe Day need to be created
$timezone string the timezone in which Victory in Europe Day is celebrated
$locale string the locale for which Victory in Europe Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday

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

World Animal Day is an international day of action for animal rights and welfare celebrated annually on October 4, the Feast Day of St Francis of Assisi, the patron saint of animals. It started in 1931 at a convention of ecologists in Florence, Italy who wished to highlight the plight of endangered species.
public worldAnimalDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which World Animal Day need to be created
$timezone string the timezone in which World Animal Day is celebrated
$locale string the locale for which World Animal Day need to be displayed in.
$type string The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered.
Результат Yasumi\Holiday