Google_ActivityVisibilityServiceResource

The "activityVisibility" collection of methods.

Defined (1)

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

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