Google_StyleServiceResource
The "style" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_FusiontablesService.php
- class Google_StyleServiceResource extends Google_ServiceResource {
- /**
- * Deletes a style. (style.delete)
- *
- * @param string $tableId Table from which the style is being deleted
- * @param int $styleId Identifier (within a table) for the style being deleted
- * @param array $optParams Optional parameters.
- */
- public function delete($tableId, $styleId, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Gets a specific style. (style.get)
- *
- * @param string $tableId Table to which the requested style belongs
- * @param int $styleId Identifier (integer) for a specific style in a table
- * @param array $optParams Optional parameters.
- * @return Google_StyleSetting
- */
- public function get($tableId, $styleId, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * Adds a new style for the table. (style.insert)
- *
- * @param string $tableId Table for which a new style is being added
- * @param Google_StyleSetting $postBody
- * @param array $optParams Optional parameters.
- * @return Google_StyleSetting
- */
- public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of styles. (style.list)
- *
- * @param string $tableId Table whose styles are being listed
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
- * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
- * @return Google_StyleSettingList
- */
- public function listStyle($tableId, $optParams = array()) {
- $params = array('tableId' => $tableId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSettingList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing style. This method supports patch semantics. (style.patch)
- *
- * @param string $tableId Table whose style is being updated.
- * @param int $styleId Identifier (within a table) for the style being updated.
- * @param Google_StyleSetting $postBody
- * @param array $optParams Optional parameters.
- * @return Google_StyleSetting
- */
- public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing style. (style.update)
- *
- * @param string $tableId Table whose style is being updated.
- * @param int $styleId Identifier (within a table) for the style being updated.
- * @param Google_StyleSetting $postBody
- * @param array $optParams Optional parameters.
- * @return Google_StyleSetting
- */
- public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- }