Google_AclServiceResource

The "acl" collection of methods.

Defined (2)

The class is defined in the following location(s).

/src/contrib/Google_CalendarService.php  
  1. class Google_AclServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Deletes an access control rule. (acl.delete) 
  5. * @param string $calendarId Calendar identifier. 
  6. * @param string $ruleId ACL rule identifier. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($calendarId, $ruleId, $optParams = array()) { 
  10. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data; 
  14. /** 
  15. * Returns an access control rule. (acl.get) 
  16. * @param string $calendarId Calendar identifier. 
  17. * @param string $ruleId ACL rule identifier. 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_AclRule 
  20. */ 
  21. public function get($calendarId, $ruleId, $optParams = array()) { 
  22. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); 
  23. $params = array_merge($params, $optParams); 
  24. $data = $this->__call('get', array($params)); 
  25. if ($this->useObjects()) { 
  26. return new Google_AclRule($data); 
  27. } else { 
  28. return $data; 
  29. /** 
  30. * Creates an access control rule. (acl.insert) 
  31. * @param string $calendarId Calendar identifier. 
  32. * @param Google_AclRule $postBody 
  33. * @param array $optParams Optional parameters. 
  34. * @return Google_AclRule 
  35. */ 
  36. public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) { 
  37. $params = array('calendarId' => $calendarId, 'postBody' => $postBody); 
  38. $params = array_merge($params, $optParams); 
  39. $data = $this->__call('insert', array($params)); 
  40. if ($this->useObjects()) { 
  41. return new Google_AclRule($data); 
  42. } else { 
  43. return $data; 
  44. /** 
  45. * Returns the rules in the access control list for the calendar. (acl.list) 
  46. * @param string $calendarId Calendar identifier. 
  47. * @param array $optParams Optional parameters. 
  48. * @return Google_Acl 
  49. */ 
  50. public function listAcl($calendarId, $optParams = array()) { 
  51. $params = array('calendarId' => $calendarId); 
  52. $params = array_merge($params, $optParams); 
  53. $data = $this->__call('list', array($params)); 
  54. if ($this->useObjects()) { 
  55. return new Google_Acl($data); 
  56. } else { 
  57. return $data; 
  58. /** 
  59. * Updates an access control rule. This method supports patch semantics. (acl.patch) 
  60. * @param string $calendarId Calendar identifier. 
  61. * @param string $ruleId ACL rule identifier. 
  62. * @param Google_AclRule $postBody 
  63. * @param array $optParams Optional parameters. 
  64. * @return Google_AclRule 
  65. */ 
  66. public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) { 
  67. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); 
  68. $params = array_merge($params, $optParams); 
  69. $data = $this->__call('patch', array($params)); 
  70. if ($this->useObjects()) { 
  71. return new Google_AclRule($data); 
  72. } else { 
  73. return $data; 
  74. /** 
  75. * Updates an access control rule. (acl.update) 
  76. * @param string $calendarId Calendar identifier. 
  77. * @param string $ruleId ACL rule identifier. 
  78. * @param Google_AclRule $postBody 
  79. * @param array $optParams Optional parameters. 
  80. * @return Google_AclRule 
  81. */ 
  82. public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) { 
  83. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); 
  84. $params = array_merge($params, $optParams); 
  85. $data = $this->__call('update', array($params)); 
  86. if ($this->useObjects()) { 
  87. return new Google_AclRule($data); 
  88. } else { 
  89. return $data; 
/src/contrib/Google_OrkutService.php  
  1. class Google_AclServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Excludes an element from the ACL of the activity. (acl.delete) 
  5. * @param string $activityId ID of the activity. 
  6. * @param string $userId ID of the user to be removed from the activity. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($activityId, $userId, $optParams = array()) { 
  10. $params = array('activityId' => $activityId, 'userId' => $userId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data;