Esempio n. 1
0
 /**
  * set calendar component property recurrence-id
  *
  * @author Kjell-Inge Gustafsson, kigkonsult <*****@*****.**>
  * @since 2.9.6 - 2011-05-15
  * @param mixed $year
  * @param mixed $month optional
  * @param int $day optional
  * @param int $hour optional
  * @param int $min optional
  * @param int $sec optional
  * @param array $params optional
  * @return bool
  */
 function setRecurrenceid($year, $month = FALSE, $day = FALSE, $hour = FALSE, $min = FALSE, $sec = FALSE, $tz = FALSE, $params = FALSE)
 {
     if (empty($year)) {
         if ($this->getConfig('allowEmpty')) {
             $this->recurrenceid = array('value' => null, 'params' => null);
             return TRUE;
         } else {
             return FALSE;
         }
     }
     $this->recurrenceid = iCal_UtilityFunctions::_setDate($year, $month, $day, $hour, $min, $sec, $tz, $params, null, null, $this->getConfig('TZID'));
     return TRUE;
 }