zimbra-api / soap-api

Zimbra SOAP client in PHP language
BSD 3-Clause "New" or "Revised" License
62 stars 48 forks source link

Documentation for recurrence in createAppointment #23

Open Antoine81 opened 7 years ago

Antoine81 commented 7 years ago

Hello,

Can you just give me an example to use the method "createAppointment" with recurrences rules ?

It will be kind. Thank you.

Antoine81 commented 6 years ago

Hello,

I still looking for documentation to use recurrence in createAppointment.

Actually I do this ( doen't work ) :

$simple = new SimpleRepeatingRule(Frequency::DAY);
$until = new DateTimeStringAttr('20170903T215959Z');
$interval = new IntervalRule(1);

$simple->setUntil($until)
            ->setInterval($interval);

$recur = new RecurrenceInfo($simple->toArray());
$comp->setRecurrence($recur);

@nguyennv