/** * Constructor method for CalReply * @param string $attendee Address of attendee who replied * @param int $sequence Sequence * @param int $date Timestamp of reply * @param int $rangeType Recurrence range type * @param string $recurId Recurrence ID in format : YYMMDD[THHMMSS[Z]] * @param string $sentBy SENT-BY * @param ParticipationStatus $partStat iCalendar PTST (Participation status) * @param string $tz Timezone name * @param string $ridZ Recurrence-id in UTC time zone; used in non-all-day appointments only. Format: YYMMDDTHHMMSSZ * @return self */ public function __construct($attendee, $sequence, $date, $rangeType, $recurId, $sentBy = null, ParticipationStatus $partStat = null, $tz = null, $ridZ = null) { parent::__construct($rangeType, $recurId, $tz, $ridZ); $this->setProperty('at', trim($attendee)); $this->setProperty('seq', (int) $sequence); $this->setProperty('d', (int) $date); if (null !== $sentBy) { $this->setProperty('sentBy', trim($sentBy)); } if ($partStat instanceof ParticipationStatus) { $this->setProperty('ptst', $partStat); } }
/** * Constructor method for CalReply * @param string $at Address of attendee who replied * @param int $seq Sequence * @param int $d Timestamp of reply * @param int $rangeType Recurrence range type * @param string $recurId Recurrence ID in format : YYMMDD[THHMMSS[Z]] * @param string $sentBy SENT-BY * @param ParticipationStatus $ptst iCalendar PTST (Participation status) * @param string $tz Timezone name * @param string $ridZ Recurrence-id in UTC time zone; used in non-all-day appointments only. Format: YYMMDDTHHMMSSZ * @return self */ public function __construct($at, $seq, $d, $rangeType, $recurId, $sentBy = null, ParticipationStatus $ptst = null, $tz = null, $ridZ = null) { parent::__construct($rangeType, $recurId, $tz, $ridZ); $this->property('at', trim($at)); $this->property('seq', (int) $seq); $this->property('d', (int) $d); if (null !== $sentBy) { $this->property('sentBy', trim($sentBy)); } if ($ptst instanceof ParticipationStatus) { $this->property('ptst', $ptst); } }