/** * Constructor method for InviteComponent * * @param string $method * @param int $compNum * @param bool $rsvp * @param int $priority * @param string $name * @param string $loc * @param int $percentComplete * @param string $completed * @param bool $noBlob * @param FreeBusyStatus $fba * @param FreeBusyStatus $fb * @param Transparency $transp * @param bool $isOrg * @param string $x_uid * @param string $uid * @param int $seq * @param int $d * @param string $calItemId * @param string $apptId * @param string $ciFolder * @param InviteStatus $status * @param InviteClass $class * @param string $url * @param bool $ex * @param string $ridZ * @param bool $allDay * @param bool $draft * @param bool $neverSent * @param array $change * @param array $category * @param array $comment * @param array $contact * @param GeoInfo $geo * @param array $at * @param array $alarm * @param array $xprop * @param string $fr * @param string $desc * @param string $descHtml * @param CalOrganizer $or * @param RecurrenceInfo $recur * @param ExceptionRecurIdInfo $exceptId * @param DtTimeInfo $s * @param DtTimeInfo $e * @param DurationInfo $dur * @param RawInvite $content * @param InviteComponent $comp * @param array $tz * @param array $mp * @param AttachmentsInfo $attach * @param string $id * @param string $ct * @param string $ci */ public function __construct($method, $compNum, $rsvp, $priority = null, $name = null, $loc = null, $percentComplete = null, $completed = null, $noBlob = null, FreeBusyStatus $fba = null, FreeBusyStatus $fb = null, Transparency $transp = null, $isOrg = null, $x_uid = null, $uid = null, $seq = null, $d = null, $calItemId = null, $apptId = null, $ciFolder = null, InviteStatus $status = null, InviteClass $class = null, $url = null, $ex = null, $ridZ = null, $allDay = null, $draft = null, $neverSent = null, array $change = array(), array $category = array(), array $comment = array(), array $contact = array(), GeoInfo $geo = null, array $at = array(), array $alarm = array(), array $xprop = array(), $fr = null, $desc = null, $descHtml = null, CalOrganizer $or = null, RecurrenceInfo $recur = null, ExceptionRecurIdInfo $exceptId = null, DtTimeInfo $s = null, DtTimeInfo $e = null, DurationInfo $dur = null, RawInvite $content = null, InviteComponent $comp = null, array $tz = array(), array $mp = array(), AttachmentsInfo $attach = null, $id = null, $ct = null, $ci = null) { parent::__construct($method, $compNum, $rsvp, $priority, $name, $loc, $percentComplete, $completed, $noBlob, $fba, $fb, $transp, $isOrg, $x_uid, $uid, $seq, $d, $calItemId, $apptId, $ciFolder, $status, $class, $url, $ex, $ridZ, $allDay, $draft, $neverSent, $change, $category, $comment, $contact, $geo, $at, $alarm, $xprop, $fr, $desc, $descHtml, $or, $recur, $exceptId, $s, $e, $dur); if ($content instanceof RawInvite) { $this->child('content', $content); } if ($comp instanceof InviteComponent) { $this->child('comp', $comp); } $this->_tz = new TypedSequence('Zimbra\\Mail\\Struct\\CalTZInfo', $tz); $this->_mp = new TypedSequence('Zimbra\\Mail\\Struct\\MimePartInfo', $mp); if ($attach instanceof AttachmentsInfo) { $this->child('attach', $attach); } if (null !== $id) { $this->property('id', trim($id)); } if (null !== $ct) { $this->property('ct', trim($ct)); } if (null !== $ci) { $this->property('ci', trim($ci)); } $this->on('before', function (InviteComponent $sender) { if ($sender->tz()->count()) { $sender->child('tz', $sender->tz()->all()); } if ($sender->mp()->count()) { $sender->child('mp', $sender->mp()->all()); } }); }
/** * Constructor method for InviteComponent * * @param string $method * @param int $compNum * @param bool $rsvp * @param int $priority * @param string $name * @param string $loc * @param int $percentComplete * @param string $completed * @param bool $noBlob * @param FreeBusyStatus $fba * @param FreeBusyStatus $fb * @param Transparency $transp * @param bool $isOrg * @param string $x_uid * @param string $uid * @param int $seq * @param int $d * @param string $calItemId * @param string $apptId * @param string $ciFolder * @param InviteStatus $status * @param InviteClass $class * @param string $url * @param bool $ex * @param string $ridZ * @param bool $allDay * @param bool $draft * @param bool $neverSent * @param array $changes * @param array $categories * @param array $comments * @param array $contacts * @param GeoInfo $geo * @param array $attendees * @param array $alarms * @param array $xprops * @param string $fr * @param string $desc * @param string $descHtml * @param CalOrganizer $or * @param RecurrenceInfo $recur * @param ExceptionRecurIdInfo $exceptId * @param DtTimeInfo $s * @param DtTimeInfo $e * @param DurationInfo $dur * @param RawInvite $content * @param InviteComponent $comp * @param array $timezones * @param array $mimeParts * @param AttachmentsInfo $attach * @param string $id * @param string $ct * @param string $ci */ public function __construct($method = null, $compNum = null, $rsvp = null, $priority = null, $name = null, $loc = null, $percentComplete = null, $completed = null, $noBlob = null, FreeBusyStatus $fba = null, FreeBusyStatus $fb = null, Transparency $transp = null, $isOrg = null, $x_uid = null, $uid = null, $seq = null, $d = null, $calItemId = null, $apptId = null, $ciFolder = null, InviteStatus $status = null, InviteClass $class = null, $url = null, $ex = null, $ridZ = null, $allDay = null, $draft = null, $neverSent = null, array $changes = [], array $categories = [], array $comments = [], array $contacts = [], GeoInfo $geo = null, array $attendees = [], array $alarms = [], array $xprops = [], $fr = null, $desc = null, $descHtml = null, CalOrganizer $or = null, RecurrenceInfo $recur = null, ExceptionRecurIdInfo $exceptId = null, DtTimeInfo $s = null, DtTimeInfo $e = null, DurationInfo $dur = null, RawInvite $content = null, InviteComponent $comp = null, array $timezones = [], array $mimeParts = [], AttachmentsInfo $attach = null, $id = null, $ct = null, $ci = null) { parent::__construct($method, $compNum, $rsvp, $priority, $name, $loc, $percentComplete, $completed, $noBlob, $fba, $fb, $transp, $isOrg, $x_uid, $uid, $seq, $d, $calItemId, $apptId, $ciFolder, $status, $class, $url, $ex, $ridZ, $allDay, $draft, $neverSent, $changes, $categories, $comments, $contacts, $geo, $attendees, $alarms, $xprops, $fr, $desc, $descHtml, $or, $recur, $exceptId, $s, $e, $dur); if ($content instanceof RawInvite) { $this->setChild('content', $content); } if ($comp instanceof InviteComponent) { $this->setChild('comp', $comp); } if ($attach instanceof AttachmentsInfo) { $this->setChild('attach', $attach); } if (null !== $id) { $this->setProperty('id', trim($id)); } if (null !== $ct) { $this->setProperty('ct', trim($ct)); } if (null !== $ci) { $this->setProperty('ci', trim($ci)); } $this->setTimezones($timezones)->setMimeParts($mimeParts); $this->on('before', function (InviteComponent $sender) { if ($sender->getTimezones()->count()) { $sender->setChild('tz', $sender->getTimezones()->all()); } if ($sender->getMimeParts()->count()) { $sender->setChild('mp', $sender->getMimeParts()->all()); } }); }