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