Google Calendar ACL

Instantiate ACL
$acl = eden('google')->calendar($_SESSION['token'])->acl();
ACL Methods
Method Arguments Returns Description
$acl->create($role, $type, $calendarId = self::PRIMARY);
  1. string
  2. - The role assigned to the scope
  3. string
  4. - The type of the scope
  5. string
  6. - Calendar identifier
array Creates a secondary calendar.
$acl->delete($ruleId, $calendarId = self::PRIMARY);
  1. string
  2. - ACL rule identifier
  3. string
  4. - Calendar identifier
null Deletes an access control rule
$acl->getList($calendarId = self::PRIMARY);
  1. string
  2. - Calendar identifier
array Returns the rules in the access control list for the calendar.
$acl->getSpecific($ruleId, $calendarId = self::PRIMARY);
  1. string
  2. - ACL rule identifier
  3. string
  4. - Calendar identifier
array Returns an access control rule.
$acl->setEtag($etag);
  1. string
  2. - ETag of the resource.
Eden_Google_Calendar_Acl Set etag
$acl->setId($id);
  1. string|integer
  2. - Identifier of the ACL rule.
Eden_Google_Calendar_Acl Set id
$acl->setKind($kind);
  1. string
  2. - Type of the resource ("calendar#aclRule").
Eden_Google_Calendar_Acl Set calendar kind
$acl->setRoleToFreeBusyReader(); none Eden_Google_Calendar_Acl Provides read access to free/busy information.
$acl->setRoleToNone(); none Eden_Google_Calendar_Acl Provides no access role.
$acl->setRoleToReader(); none Eden_Google_Calendar_Acl Provides read access to the calendar. 1Private events will appear to users with reader access, but event details will be hidden.
$acl->setRoleToWriter(); none Eden_Google_Calendar_Acl Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
$acl->setRoleToOwner(); none Eden_Google_Calendar_Acl Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
$acl->setType($type); none Eden_Google_Calendar_Acl The type of the scope. Possible values are: "default" - The public scope. This is the default value. "user" - Limits the scope to a single user. "group" - Limits the scope to a group. "domain" - Limits the scope to a domain.
$acl->update($ruleId, $calendarId = self::PRIMARY);
  1. string
  2. - ACL rule identifier
  3. string
  4. - Calendar identifier
array Updates an access control rule

© 2012 Openovate Labs. All rights reserved.