Skip to content

cDateStrategyDailyFixed::GetArray()

Rainer Stötter edited this page May 9, 2017 · 15 revisions

Method GetArray( )

 public   void libdatephp\cDateStrategy::GetArray(array $ary, \libdatephp\cDate $obj_date_start, mixed $obj_date_end, integer $direction, boolean $debug)

The method GetArray( ) returns a series of fitting dates between $obj_date_start and $obj_date_end or a bunch of first occurences in the given direction $direction. The resulting dates are added to the array $ary

Arguments

  • $ary array - <p>is the resulting array.</p>
  • $obj_date_start libdatephp\cDate - <p>is the date, where we start from.</p>
  • $obj_date_end mixed - <p>is the date, where we stop to calculate new events. If it is an int then it defines the number of occurences to calculate from $obj_date_start on in direction $direction.</p>
  • $direction integer - <p>is the direction on the time line, in which the events are calculated. It defaults to DIRECTION_FORWARD.</p>
  • $debug boolean - <p>toggles the debugging mode on, if it is true. By default it is false.</p>

Returns

void 

See also

Clone this wiki locally