Skip to content

libdatephp cDateStrategyMonthlyFixed

Rainer Stötter edited this page May 17, 2017 · 18 revisions

libdatephp\cDateStrategyMonthlyFixed

The class cDateStrategyMonthlyFixed calculates recurring monthly events based on weeknumber(s) or day(s) of week base. It is specialized to find one or some events in the weeks, which are part of a certain week number or when the date falls onto a special day number . Certain events in certain weeks. For example it can solve the problem to find matching events for the second thursday and friday in a month.

There are several child classes for specialized tasks:

  • cDateStrategyDaily
  • cDateStrategyDailyFixed
  • cDateStrategyMonthly
  • cDateStrategyMonthlyFixed
  • cDateStrategyNoInterval
  • cDateStrategySimpleDate
  • cDateStrategySimpleInterval
  • cDateStrategyWeekly

abstract methods are:

  • IsValid( )
  • GetFirstDate( )
  • FromString( )
  • GetNextEventSlot( )

all objects have one calendar with celebrities in common and each object has its own calendar with holidays

constants of class cDateStrategyMonthlyFixed


properties of class cDateStrategyMonthlyFixed


methods of class cDateStrategyMonthlyFixed


     public  static  mixed libdatephp\cDateStrategy::AddCelebrity($obj_date)
     public  mixed libdatephp\cDateStrategy::AddHoliday($obj_date)
     public  mixed libdatephp\cDateStrategy::AdjustedUnderOverflow(\libdatephp\cDate $date_test, integer $direction)
     public  abstract  string libdatephp\cDateStrategy::AsString()
     public  mixed libdatephp\cDateStrategy::Dump(\libdatephp\cDate $obj_date_calc_from, \libdatephp\cDate $obj_date_calc_to, integer $direction)
     public  mixed libdatephp\cDateStrategy::FillForm()
     public  mixed libdatephp\cDateStrategy::FromForm()
     public  abstract  mixed libdatephp\cDateStrategy::FromString(string $str)
     public  void libdatephp\cDateStrategy::GetArray(array $ary, \libdatephp\cDate $obj_date_start, mixed $obj_date_end, integer $direction, boolean $debug)
     public  \libdatephp\cDate libdatephp\cDateStrategy::GetEndDate()
     public  abstract  \libdatephp\cDate libdatephp\cDateStrategy::GetFirstDate()
     public  \libdatephp\cDate libdatephp\cDateStrategy::GetFollower(\libdatephp\cDate $date, \libdatephp\cDate $dt_next, integer $direction)
     public  \libdatephp\cDate|null libdatephp\cDateStrategy::GetNextEventDate($obj_date_start, $is_first_date)
     public  abstract  \libdatephp\cDate libdatephp\cDateStrategy::GetNextEventSlot(\libdatephp\cDate $obj_date, integer $direction)
     public  \libdatephp\cDate libdatephp\cDateStrategy::GetPredecessor(\libdatephp\cDate $obj_date, \libdatephp\cDate $dt_prev)
     public  \libdatephp\cDate libdatephp\cDateStrategy::GetStartDate()
     public  integer libdatephp\cDateStrategy::GetStrategyCelebrity()
     public  integer libdatephp\cDateStrategy::GetStrategyHoliday()
     public  integer libdatephp\cDateStrategy::GetStrategyImpossible()
     public  integer libdatephp\cDateStrategy::GetStrategySaturday()
     public  integer libdatephp\cDateStrategy::GetStrategySunday()
     public  boolean libdatephp\cDateStrategy::HasEndDate()
     public  static  boolean libdatephp\cDateStrategy::IsCelebrity($obj_date)
     public  boolean libdatephp\cDateStrategy::IsEventDate($obj_date)
     public  boolean libdatephp\cDateStrategy::IsHoliday($obj_date)
     public  boolean libdatephp\cDateStrategy::IsHolidayOrCelebrity($obj_date)
     public  abstract  boolean libdatephp\cDateStrategy::IsValid()
     public  \libdatephp\cDate libdatephp\cDateStrategy::MoveDateIfNecessary($date)
     public  mixed libdatephp\cDateStrategy::Reset()
     public  static  mixed libdatephp\cDateStrategy::ResetCelebrities()
     public  mixed libdatephp\cDateStrategy::ResetHolidays()
     public  mixed libdatephp\cDateStrategy::SetEndDate(\libdatephp\cDate $obj_date)
     public  mixed libdatephp\cDateStrategy::SetLanguage(string $language)
     public  mixed libdatephp\cDateStrategy::SetStartDate(\libdatephp\cDate $obj_date)
     public  mixed libdatephp\cDateStrategy::SetStrategyCelebrity(integer $direction)
     public  mixed libdatephp\cDateStrategy::SetStrategyHoliday(integer $direction)
     public  mixed libdatephp\cDateStrategy::SetStrategyImpossible(integer $direction)
     public  mixed libdatephp\cDateStrategy::SetStrategySaturday(integer $direction)
     public  mixed libdatephp\cDateStrategy::SetStrategySunday(integer $direction)
     public  \libdatephp\cDateStrategy libdatephp\cDateStrategy::__construct($start_date, $end_date, $language, $directionOnSaturday, $directionOnSunday, $directionOnCelebrity, $directionOnHoliday, $directionOnImpossible)

Clone this wiki locally