Google_ActivityVisibilityServiceResource

The "activityVisibility" collection of methods.

Defined (1)

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

/src/contrib/Google_OrkutService.php  
  1. class Google_ActivityVisibilityServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets the visibility of an existing activity. (activityVisibility.get) 
  5. * @param string $activityId ID of the activity to get the visibility. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Visibility 
  8. */ 
  9. public function get($activityId, $optParams = array()) { 
  10. $params = array('activityId' => $activityId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('get', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_Visibility($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Updates the visibility of an existing activity. This method supports patch semantics. 
  19. * (activityVisibility.patch) 
  20. * @param string $activityId ID of the activity. 
  21. * @param Google_Visibility $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Visibility 
  24. */ 
  25. public function patch($activityId, Google_Visibility $postBody, $optParams = array()) { 
  26. $params = array('activityId' => $activityId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('patch', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_Visibility($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Updates the visibility of an existing activity. (activityVisibility.update) 
  35. * @param string $activityId ID of the activity. 
  36. * @param Google_Visibility $postBody 
  37. * @param array $optParams Optional parameters. 
  38. * @return Google_Visibility 
  39. */ 
  40. public function update($activityId, Google_Visibility $postBody, $optParams = array()) { 
  41. $params = array('activityId' => $activityId, 'postBody' => $postBody); 
  42. $params = array_merge($params, $optParams); 
  43. $data = $this->__call('update', array($params)); 
  44. if ($this->useObjects()) { 
  45. return new Google_Visibility($data); 
  46. } else { 
  47. return $data;