Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Attendees #97

Closed
ajoudeh opened this issue May 29, 2017 · 4 comments
Closed

Add Attendees #97

ajoudeh opened this issue May 29, 2017 · 4 comments
Labels

Comments

@ajoudeh
Copy link

ajoudeh commented May 29, 2017

Hi,

How i can add Attendees to ics. can you give the the code?

Thanks,

@markuspoerschke
Copy link
Owner

@navarr can you help here?

@navarr
Copy link
Contributor

navarr commented May 30, 2017

Hey @ajoudeh,

Once you have your iCal event component setup (like in the README), you can add Attendees to it like this:

$vEvent->addAttendee($attendee) where $attendee is a URI. For example, you wanted to invite john@example.org, you would be able to simply do

$vEvent->addAttendee('MAILTO:john@example.org')

You may additionally specify a second parameter containing additional information, e.g.

$vEvent->addAttendee('MAILTO:john@example.org', ['ROLE => 'REQ-PARTICIPANT'])

The most important attributes and their values:

Roles [ROLE]:

  • CHAIR - Leader of the meeting
  • REQ-PARTICIPANT - Someone required to be at the meeting
  • OPT-PARTICIPANT - Optional Participant
  • NON-PARTICIPANT - Someone copied on the meeting for information purposes only

Participation Status [PARTSTAT]

  • NEEDS-ACTION - If they have not yet responded
  • ACCEPTED - If they have accepted the event
  • DECLINED - If they have declined the event
  • TENTATIVE - If they will tentatively show up
  • DELEGATED - If they have sent someone in their place

Common Name [CN]

This is used to send the name of the person along. Your array might look like ['CN' => 'Navarr Barnier']

@ajoudeh
Copy link
Author

ajoudeh commented Jun 4, 2017

@navarr & @markuspoerschke
Thank you very much for your help.

@markuspoerschke
Copy link
Owner

@navarr Thanks for the detailed answer. I linked your comment in #92 so the information will not be lost when the documentation is written 👍

I close this issue since the question was answered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants