PHP Trait Yasumi\Provider\ChristianHolidays

Trait containing base Christian Western churches calendar based holidays.
Afficher le fichier Open project: azuyalabs/yasumi

Méthodes publiques

Méthode Description
allSaintsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday All Saints' Day.
annunciation ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Annunciation.
ascensionDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Ascension Day.
ashWednesday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Ash Wednesday.
assumptionOfMary ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Day of the Assumption of Mary.
calculateOrthodoxEaster ( integer $year, string $timezone ) : Datetime Calculate the Easter date for Orthodox churches.
christmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Christmas Day.
christmasEve ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OBSERVANCE ) : Holiday Christmas Eve.
corpusChristi ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OTHER ) : Holiday Corpus Christi.
easter ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Easter.
easterMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Easter Monday.
epiphany ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Epiphany.
goodFriday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Good Friday.
immaculateConception ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Immaculate Conception.
maundyThursday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Maundy Thursday.
pentecost ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Pentecost (Whitsunday).
pentecostMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Pentecost (Whitmonday).
secondChristmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday Second Christmas Day / Boxing Day.
stGeorgesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday St. George's Day.
stJohnsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday St. John's Day.
stJosephsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday St. Joseph's Day.
stStephensDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday St. Stephen's Day.

Méthodes protégées

Méthode Description
calculateEaster ( integer $year, string $timezone ) : DateTime Calculates the date for Easter.

Method Details

allSaintsDay() public méthode

All Saints' Day, also known as All Hallows, Solemnity of All Saints, or Feast of All Saints is a solemnity celebrated on 1 November by the Catholic Church and various Protestant denominations, and on the first Sunday after Pentecost in Eastern Catholicism and Eastern Orthodoxy, in honour of all the saints, known and unknown. The liturgical celebration begins at Vespers on the evening of 31 October and ends at the close of 1 November.
public allSaintsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which All Saints' Day need to be created
$timezone string the timezone in which All Saints' Day is celebrated
$locale string the locale for which All Saints' 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.
Résultat Yasumi\Holiday

annunciation() public méthode

The Annunciation, also referred to as the Annunciation to the Blessed Virgin Mary, the Annunciation of Our Lady or the Annunciation of the Lord, is the Christian celebration of the announcement by the angel Gabriel to the Virgin Mary that she would conceive and become the mother of Jesus, the Son of God, marking his Incarnation. Many Christians observe this event with the Feast of the Annunciation on 25 March, an approximation of the northern vernal equinox nine full months before Christmas, the ceremonial birthday of Jesus.
public annunciation ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which the Annunciation needs to be created
$timezone string the timezone in which the Annunciation is celebrated
$locale string the locale for which the Annunciation 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.
Résultat Yasumi\Holiday

ascensionDay() public méthode

Ascension Day commemorates the bodily Ascension of Jesus into heaven. It is one of the ecumenical feasts of Christian churches. Ascension Day is traditionally celebrated on a Thursday, the fortieth day of Easter although some Catholic provinces have moved the observance to the following Sunday.
public ascensionDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Ascension need to be created
$timezone string the timezone in which Ascension is celebrated
$locale string the locale for which Ascension 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.
Résultat Yasumi\Holiday

ashWednesday() public méthode

Ash Wednesday, a day of fasting, is the first day of Lent in Western Christianity. It occurs 46 days (40 fasting days, if the 6 Sundays, which are not days of fast, are excluded) before Easter and can fall as early as 4 February or as late as 10 March.
public ashWednesday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Ash Wednesday need to be created
$timezone string the timezone in which Ash Wednesday is celebrated
$locale string the locale for which Ash Wednesday 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.
Résultat Yasumi\Holiday

assumptionOfMary() public méthode

The Assumption of the Virgin Mary into Heaven, informally known as the Assumption, was the bodily taking up of the Virgin Mary into Heaven at the end of her earthly life. In the churches that observe it, the Assumption is a major feast day, commonly celebrated on August 15.
public assumptionOfMary ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which the day of the Assumption of Mary need to be created
$timezone string the timezone in which the day of the Assumption of Mary is celebrated
$locale string the locale for which the day of the Assumption of Mary 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.
Résultat Yasumi\Holiday

calculateEaster() protected méthode

Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated on a date based on a certain number of days after March 21st. This function uses the standard PHP 'easter_days'.
See also: easter_days
protected calculateEaster ( integer $year, string $timezone ) : DateTime
$year integer the year for which Easter needs to be calculated
$timezone string the timezone in which Easter is celebrated
Résultat DateTime date of Easter

calculateOrthodoxEaster() public méthode

Calculate the Easter date for Orthodox churches.
public calculateOrthodoxEaster ( integer $year, string $timezone ) : Datetime
$year integer the year for which Easter needs to be calculated
$timezone string the timezone in which Easter is celebrated
Résultat Datetime date of Orthodox Easter

christmasDay() public méthode

Christmas or Christmas Day (Old English: Crīstesmæsse, meaning "Christ's Mass") is an annual festival commemorating the birth of Jesus Christ, observed most commonly on December 25 as a religious and cultural celebration among billions of people around the world.
public christmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Christmas Day need to be created
$timezone string the timezone in which Christmas Day is celebrated
$locale string the locale for which Christmas 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.
Résultat Yasumi\Holiday

christmasEve() public méthode

Christmas Eve refers to the evening or entire day preceding Christmas Day, a widely celebrated festival commemorating the birth of Jesus of Nazareth.[4] Christmas Day is observed around the world, and Christmas Eve is widely observed as a full or partial holiday in anticipation of Christmas Day. Together, both days are considered one of the most culturally significant celebrations in Christendom and Western society.
public christmasEve ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OBSERVANCE ) : Holiday
$year integer the year for which Christmas Eve needs to be created
$timezone string the timezone in which Christmas Eve is celebrated
$locale string the locale for which Christmas Eve 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 observance is considered.
Résultat Yasumi\Holiday

corpusChristi() public méthode

The Feast of Corpus Christi (Latin for Body of Christ), also known as Corpus Domini, is a Latin Rite liturgical solemnity celebrating the tradition and belief in the body and blood of Jesus Christ and his Real Presence in the Eucharist. The feast is liturgically celebrated on the Thursday after Trinity Sunday or, "where the Solemnity of The Most Holy Body and Blood of Christ is not a holy day of obligation, it is assigned to the Sunday after the Most Holy Trinity as its proper day". This is 60 days after Easter.
public corpusChristi ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OTHER ) : Holiday
$year integer the year for which Corpus Christi need to be created
$timezone string the timezone in which Corpus Christi is celebrated
$locale string the locale for which Corpus Christi 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 type of 'other' is considered.
Résultat Yasumi\Holiday

easter() public méthode

Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox.
public easter ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Easter need to be created
$timezone string the timezone in which Easter is celebrated
$locale string the locale for which Easter 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.
Résultat Yasumi\Holiday

easterMonday() public méthode

Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox.
public easterMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Easter Monday need to be created
$timezone string the timezone in which Easter Monday is celebrated
$locale string the locale for which Easter Monday 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.
Résultat Yasumi\Holiday

epiphany() public méthode

Epiphany is a Christian feast day that celebrates the revelation of God the Son as a human being in Jesus Christ. The traditional date for the feast is January 6. However, since 1970, the celebration is held in some countries on the Sunday after January 1. Eastern Churches following the Julian Calendar observe the Theophany feast on what for most countries is January 19 because of the 13-day difference today between that calendar and the generally used Gregorian calendar.
public epiphany ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Epiphany need to be created
$timezone string the timezone in which Epiphany is celebrated
$locale string the locale for which Epiphany 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.
Résultat Yasumi\Holiday

goodFriday() public méthode

Good Friday is a Christian religious holiday commemorating the crucifixion of Jesus Christ and his death at Calvary. The holiday is observed during Holy Week as part of the Paschal Triduum on the Friday preceding Easter Sunday, and may coincide with the Jewish observance of Passover.
public goodFriday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Good Friday need to be created
$timezone string the timezone in which Good Friday is celebrated
$locale string the locale for which Good Friday 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.
Résultat Yasumi\Holiday

immaculateConception() public méthode

The Feast of the Immaculate Conception celebrates the solemn belief in the Immaculate Conception of the Blessed Virgin Mary. It is universally celebrated on December 8, nine months before the feast of the Nativity of Mary, which is celebrated on September 8. It is one of the most important Marian feasts celebrated in the liturgical calendar of the Roman Catholic Church.
public immaculateConception ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Immaculate Conception need to be created
$timezone string the timezone in which Immaculate Conception is celebrated
$locale string the locale for which Immaculate Conception 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.
Résultat Yasumi\Holiday

maundyThursday() public méthode

Maundy Thursday (also known as Holy Thursday, Covenant Thursday, Great and Holy Thursday, Sheer Thursday, and Thursday of Mysteries) is the Christian holy day falling on the Thursday before Easter. It commemorates the Maundy and Last Supper of Jesus Christ with the Apostles as described in the Canonical gospels. It is the fifth day of Holy Week, and is preceded by Holy Wednesday and followed by Good Friday.
public maundyThursday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Maundy Thursday need to be created
$timezone string the timezone in which Maundy Thursday is celebrated
$locale string the locale for which Maundy Thursday 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.
Résultat Yasumi\Holiday

pentecost() public méthode

Pentecost a feast commemorating the descent of the Holy Spirit upon the Apostles and other followers of Jesus Christ. It is celebrated 49 days after Easter and always takes place on Sunday.
public pentecost ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Pentecost need to be created
$timezone string the timezone in which Pentecost is celebrated
$locale string the locale for which Pentecost 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.
Résultat Yasumi\Holiday

pentecostMonday() public méthode

Pentecost a feast commemorating the descent of the Holy Spirit upon the Apostles and other followers of Jesus Christ. It is celebrated 49 days after Easter and always takes place on Sunday.
public pentecostMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which Pentecost (Whitmonday) need to be created
$timezone string the timezone in which Pentecost (Whitmonday) is celebrated
$locale string the locale for which Pentecost (Whitmonday) 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.
Résultat Yasumi\Holiday

secondChristmasDay() public méthode

Christmas or Christmas Day (Old English: Crīstesmæsse, meaning "Christ's Mass") is an annual festival commemorating the birth of Jesus Christ, observed most commonly on December 25 as a religious and cultural celebration among billions of people around the world.
public secondChristmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which the Second Christmas Day / Boxing Day need to be created
$timezone string the timezone in which the Second Christmas Day / Boxing Day is celebrated
$locale string the locale for which the Second Christmas Day / Boxing 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.
Résultat Yasumi\Holiday

stGeorgesDay() public méthode

Saint George's Day is the feast day of Saint George. It is celebrated by various Christian Churches and by the several nations, kingdoms, countries, and cities of which Saint George is the patron saint. Saint George's Day is celebrated on 23 April, the traditionally accepted date of Saint George's death in 303 AD. For Eastern Orthodox Churches (which use the Julian calendar), '23 April' currently falls on 6 May of the Gregorian calendar.
public stGeorgesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which St. George's Day need to be created
$timezone string the timezone in which St. George's Day is celebrated
$locale string the locale for which St. George'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.
Résultat Yasumi\Holiday

stJohnsDay() public méthode

The Nativity of John the Baptist (or Birth of John the Baptist, or Nativity of the Forerunner) is a Christian feast day celebrating the birth of John the Baptist, a prophet who foretold the coming of the Messiah in the person of Jesus, whom he later baptised. The Nativity of John the Baptist on June 24 comes three months after the celebration on March 25 of the Annunciation, when the angel Gabriel told Mary that her cousin Elizabeth was in her sixth month of pregnancy.
public stJohnsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which St. John's Day need to be created
$timezone string the timezone in which St. John's Day is celebrated
$locale string the locale for which St. John'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.
Résultat Yasumi\Holiday

stJosephsDay() public méthode

Saint Joseph's Day, March 19, the Feast of St. Joseph is in Western Christianity the principal feast day of Saint Joseph, husband of the Blessed Virgin Mary. He is the foster-father of Jesus Christ. March 19 was dedicated to Saint Joseph in several Western calendars by the 10th century, and this custom was established in Rome by 1479. Pope St. Pius V extended its use to the entire Roman Rite by his Apostolic Constitution Quo primum (July 14, 1570). Since 1969, Episcopal Conferences may, if they wish, transfer it to a date outside Lent.
public stJosephsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which St. Joseph's Day need to be created
$timezone string the timezone in which St. Joseph's Day is celebrated
$locale string the locale for which St. Joseph'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.
Résultat Yasumi\Holiday

stStephensDay() public méthode

St. Stephen's Day, or the Feast of St. Stephen, is a Christian saint's day to commemorate Saint Stephen, the first Christian martyr or protomartyr, celebrated on 26 December in the Western Church and 27 December in the Eastern Church. Many Eastern Orthodox churches adhere to the Julian calendar and mark St. Stephen's Day on 27 December according to that calendar, which places it on 8 January of the Gregorian calendar used in secular contexts.
public stStephensDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : Holiday
$year integer the year for which St. Stephen's Day need to be created
$timezone string the timezone in which St. Stephen's Day is celebrated
$locale string the locale for which St. Stephen'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.
Résultat Yasumi\Holiday