Logo Search packages:      
Sourcecode: davical version File versions  Download package

iCalDate::GetMonthByMonthDay ( bymonthday )

Applies any BYMONTHDAY to the month to return a set of days

Parameters:
string$bymonthdayThe BYMONTHDAY rule
Returns:
array An array of the day numbers for the month which meet the rule.

Definition at line 425 of file RRule.php.

References DaysInMonth().

                                           {
    dbg_error_log( "RRule", " Applying BYMONTHDAY %s to month", $bymonthday );
    $days_in_month = $this->DaysInMonth();
    $dayrules = split(',',$bymonthday);
    $set = array();
    foreach( $dayrules AS $k => $v ) {
      $v = intval($v);
      if ( $v > 0 && $v <= $days_in_month ) $set[$v] = $v;
    }
    asort( $set, SORT_NUMERIC );
    return $set;
  }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index