Google_SettingsServiceResource

The "settings" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_CalendarService.php  
  1. class Google_SettingsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Returns all user settings for the authenticated user. (settings.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Settings 
  8. */ 
  9. public function listSettings($optParams = array()) { 
  10. $params = array(); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('list', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_Settings($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Returns a single user setting. (settings.get) 
  19. * @param string $setting Name of the user setting. 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Setting 
  22. */ 
  23. public function get($setting, $optParams = array()) { 
  24. $params = array('setting' => $setting); 
  25. $params = array_merge($params, $optParams); 
  26. $data = $this->__call('get', array($params)); 
  27. if ($this->useObjects()) { 
  28. return new Google_Setting($data); 
  29. } else { 
  30. return $data;