Google_SettingsServiceResource
The "settings" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_CalendarService.php
- class Google_SettingsServiceResource extends Google_ServiceResource {
- /**
- * Returns a single user setting. (settings.get)
- *
- * @param string $setting Name of the user setting.
- * @param array $optParams Optional parameters.
- * @return Google_Setting
- */
- public function get($setting, $optParams = array()) {
- $params = array('setting' => $setting);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Setting($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns all user settings for the authenticated user. (settings.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Settings
- */
- public function listSettings($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Settings($data);
- } else {
- return $data;
- }
- }
- }