Skip to content

cDateStrategyDaily::GetFollower()

Rainer Stötter edited this page Apr 28, 2017 · 14 revisions

Method GetFollower( )

 public  abstract   \libdatephp\cDate libdatephp\cDateStrategy::GetFollower(\libdatephp\cDate $obj_date, \libdatephp\cDate $dt_next, integer $direction)

The ABSTRACT method GetFollower( ) returns the next date from $obj_date on, which fits to the specifications Subclasses have to code this method before the class can be used

Arguments

  • $obj_date libdatephp\cDate - <p>a cDate object, which is the starting point for this calculation</p>
  • $dt_next libdatephp\cDate - <p>GetFollower returns a cDate object, which is the starting point for the next calculation. ie If we are moving backwards and scheduling forward, then a correction is necessary</p>
  • $direction integer - <p>the constant, which indicates the search direction. It defaults to DIRECTION_FORWARD</p>

Returns

\libdatephp\cDate cDate object with the next fitting date or null, if no fitting date could be found ( overflow, IsUnderflow)

See also

Clone this wiki locally