Google_Service_Fusiontables_Style_Resource

The "style" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Fusiontables.php  
  1. class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource 
  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. return $this->call('delete', array($params)); 
  13.  
  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_Service_Fusiontables_StyleSetting 
  20. */ 
  21. public function get($tableId, $styleId, $optParams = array()) 
  22. $params = array('tableId' => $tableId, 'styleId' => $styleId); 
  23. $params = array_merge($params, $optParams); 
  24. return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); 
  25.  
  26. /** 
  27. * Adds a new style for the table. (style.insert) 
  28. * @param string $tableId Table for which a new style is being added 
  29. * @param Google_StyleSetting $postBody 
  30. * @param array $optParams Optional parameters. 
  31. * @return Google_Service_Fusiontables_StyleSetting 
  32. */ 
  33. public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) 
  34. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  35. $params = array_merge($params, $optParams); 
  36. return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); 
  37.  
  38. /** 
  39. * Retrieves a list of styles. (style.listStyle) 
  40. * @param string $tableId Table whose styles are being listed 
  41. * @param array $optParams Optional parameters. 
  42. * @opt_param string pageToken Continuation token specifying which result page 
  43. * to return. Optional. 
  44. * @opt_param string maxResults Maximum number of styles to return. Optional. 
  45. * Default is 5. 
  46. * @return Google_Service_Fusiontables_StyleSettingList 
  47. */ 
  48. public function listStyle($tableId, $optParams = array()) 
  49. $params = array('tableId' => $tableId); 
  50. $params = array_merge($params, $optParams); 
  51. return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); 
  52.  
  53. /** 
  54. * Updates an existing style. This method supports patch semantics. 
  55. * (style.patch) 
  56. * @param string $tableId Table whose style is being updated. 
  57. * @param int $styleId Identifier (within a table) for the style being updated. 
  58. * @param Google_StyleSetting $postBody 
  59. * @param array $optParams Optional parameters. 
  60. * @return Google_Service_Fusiontables_StyleSetting 
  61. */ 
  62. public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) 
  63. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); 
  64. $params = array_merge($params, $optParams); 
  65. return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); 
  66.  
  67. /** 
  68. * Updates an existing style. (style.update) 
  69. * @param string $tableId Table whose style is being updated. 
  70. * @param int $styleId Identifier (within a table) for the style being updated. 
  71. * @param Google_StyleSetting $postBody 
  72. * @param array $optParams Optional parameters. 
  73. * @return Google_Service_Fusiontables_StyleSetting 
  74. */ 
  75. public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) 
  76. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); 
  77. $params = array_merge($params, $optParams); 
  78. return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting");