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

iCalDate::TestByMonth ( monthlist )

Test to see if our _mo matches something in the list of months we have received.

string$monthlistA comma-separated list of months.
boolean Whether this date falls within one of those months.

Definition at line 392 of file RRule.php.

    dbg_error_log( "RRule", " Testing BYMONTH %s against month %d", (isset($monthlist) ? $monthlist : "no month list"), $this->_mo );
    if ( !isset($monthlist) ) return true;  // If BYMONTH is not specified any month is OK
    $months = array_flip(split( ',',$monthlist ));
    return isset($months[$this->_mo]);

Generated by  Doxygen 1.6.0   Back to index