Google_StyleServiceResource

The "style" collection of methods.

Defined (1)

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

/google-api-php-client/src/contrib/Google_FusiontablesService.php  
  1. class Google_StyleServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Deletes a style. (style.delete) 
  5. * @param string $tableId Table from which the style is being deleted 
  6. * @param int $styleId Identifier (within a table) for the style being deleted 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($tableId, $styleId, $optParams = array()) { 
  10. $params = array('tableId' => $tableId, 'styleId' => $styleId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data; 
  14. /** 
  15. * Gets a specific style. (style.get) 
  16. * @param string $tableId Table to which the requested style belongs 
  17. * @param int $styleId Identifier (integer) for a specific style in a table 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_StyleSetting 
  20. */ 
  21. public function get($tableId, $styleId, $optParams = array()) { 
  22. $params = array('tableId' => $tableId, 'styleId' => $styleId); 
  23. $params = array_merge($params, $optParams); 
  24. $data = $this->__call('get', array($params)); 
  25. if ($this->useObjects()) { 
  26. return new Google_StyleSetting($data); 
  27. } else { 
  28. return $data; 
  29. /** 
  30. * Adds a new style for the table. (style.insert) 
  31. * @param string $tableId Table for which a new style is being added 
  32. * @param Google_StyleSetting $postBody 
  33. * @param array $optParams Optional parameters. 
  34. * @return Google_StyleSetting 
  35. */ 
  36. public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) { 
  37. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  38. $params = array_merge($params, $optParams); 
  39. $data = $this->__call('insert', array($params)); 
  40. if ($this->useObjects()) { 
  41. return new Google_StyleSetting($data); 
  42. } else { 
  43. return $data; 
  44. /** 
  45. * Retrieves a list of styles. (style.list) 
  46. * @param string $tableId Table whose styles are being listed 
  47. * @param array $optParams Optional parameters. 
  48. * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5. 
  49. * @opt_param string pageToken Continuation token specifying which result page to return. Optional. 
  50. * @return Google_StyleSettingList 
  51. */ 
  52. public function listStyle($tableId, $optParams = array()) { 
  53. $params = array('tableId' => $tableId); 
  54. $params = array_merge($params, $optParams); 
  55. $data = $this->__call('list', array($params)); 
  56. if ($this->useObjects()) { 
  57. return new Google_StyleSettingList($data); 
  58. } else { 
  59. return $data; 
  60. /** 
  61. * Updates an existing style. This method supports patch semantics. (style.patch) 
  62. * @param string $tableId Table whose style is being updated. 
  63. * @param int $styleId Identifier (within a table) for the style being updated. 
  64. * @param Google_StyleSetting $postBody 
  65. * @param array $optParams Optional parameters. 
  66. * @return Google_StyleSetting 
  67. */ 
  68. public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) { 
  69. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); 
  70. $params = array_merge($params, $optParams); 
  71. $data = $this->__call('patch', array($params)); 
  72. if ($this->useObjects()) { 
  73. return new Google_StyleSetting($data); 
  74. } else { 
  75. return $data; 
  76. /** 
  77. * Updates an existing style. (style.update) 
  78. * @param string $tableId Table whose style is being updated. 
  79. * @param int $styleId Identifier (within a table) for the style being updated. 
  80. * @param Google_StyleSetting $postBody 
  81. * @param array $optParams Optional parameters. 
  82. * @return Google_StyleSetting 
  83. */ 
  84. public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) { 
  85. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); 
  86. $params = array_merge($params, $optParams); 
  87. $data = $this->__call('update', array($params)); 
  88. if ($this->useObjects()) { 
  89. return new Google_StyleSetting($data); 
  90. } else { 
  91. return $data;