Google_TableServiceResource

The "table" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_FusiontablesService.php  
  1. class Google_TableServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Copies a table. (table.copy) 
  6. * @param string $tableId ID of the table that is being copied. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param bool copyPresentation Whether to also copy tabs, styles, and templates. Default is false. 
  9. * @return Google_Table 
  10. */ 
  11. public function copy($tableId, $optParams = array()) { 
  12. $params = array('tableId' => $tableId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('copy', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Table($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Deletes a table. (table.delete) 
  21. * @param string $tableId ID of the table that is being deleted. 
  22. * @param array $optParams Optional parameters. 
  23. */ 
  24. public function delete($tableId, $optParams = array()) { 
  25. $params = array('tableId' => $tableId); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('delete', array($params)); 
  28. return $data; 
  29. /** 
  30. * Retrieves a specific table by its id. (table.get) 
  31. * @param string $tableId Identifier(ID) for the table being requested. 
  32. * @param array $optParams Optional parameters. 
  33. * @return Google_Table 
  34. */ 
  35. public function get($tableId, $optParams = array()) { 
  36. $params = array('tableId' => $tableId); 
  37. $params = array_merge($params, $optParams); 
  38. $data = $this->__call('get', array($params)); 
  39. if ($this->useObjects()) { 
  40. return new Google_Table($data); 
  41. } else { 
  42. return $data; 
  43. /** 
  44. * Import more rows into a table. (table.importRows) 
  45. * @param string $tableId The table into which new rows are being imported. 
  46. * @param array $optParams Optional parameters. 
  47. * @opt_param int startLine The index of the first line from which to start importing, inclusive. Default is 0. 
  48. * @opt_param bool isStrict Whether the CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true. 
  49. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding. 
  50. * @opt_param string delimiter The delimiter used to separate cell values. This can only consist of a single character. Default is ', '. 
  51. * @opt_param int endLine The index of the last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine. 
  52. * @return Google_Import 
  53. */ 
  54. public function importRows($tableId, $optParams = array()) { 
  55. $params = array('tableId' => $tableId); 
  56. $params = array_merge($params, $optParams); 
  57. $data = $this->__call('importRows', array($params)); 
  58. if ($this->useObjects()) { 
  59. return new Google_Import($data); 
  60. } else { 
  61. return $data; 
  62. /** 
  63. * Creates a new table. (table.insert) 
  64. * @param Google_Table $postBody 
  65. * @param array $optParams Optional parameters. 
  66. * @return Google_Table 
  67. */ 
  68. public function insert(Google_Table $postBody, $optParams = array()) { 
  69. $params = array('postBody' => $postBody); 
  70. $params = array_merge($params, $optParams); 
  71. $data = $this->__call('insert', array($params)); 
  72. if ($this->useObjects()) { 
  73. return new Google_Table($data); 
  74. } else { 
  75. return $data; 
  76. /** 
  77. * Retrieves a list of tables a user owns. (table.list) 
  78. * @param array $optParams Optional parameters. 
  79. * @opt_param string pageToken Continuation token specifying which result page to return. Optional. 
  80. * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5. 
  81. * @return Google_TableList 
  82. */ 
  83. public function listTable($optParams = array()) { 
  84. $params = array(); 
  85. $params = array_merge($params, $optParams); 
  86. $data = $this->__call('list', array($params)); 
  87. if ($this->useObjects()) { 
  88. return new Google_TableList($data); 
  89. } else { 
  90. return $data; 
  91. /** 
  92. * Updates an existing table. Unless explicitly requested, only the name, description, and 
  93. * attribution will be updated. This method supports patch semantics. (table.patch) 
  94. * @param string $tableId ID of the table that is being updated. 
  95. * @param Google_Table $postBody 
  96. * @param array $optParams Optional parameters. 
  97. * @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition. 
  98. * @return Google_Table 
  99. */ 
  100. public function patch($tableId, Google_Table $postBody, $optParams = array()) { 
  101. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  102. $params = array_merge($params, $optParams); 
  103. $data = $this->__call('patch', array($params)); 
  104. if ($this->useObjects()) { 
  105. return new Google_Table($data); 
  106. } else { 
  107. return $data; 
  108. /** 
  109. * Updates an existing table. Unless explicitly requested, only the name, description, and 
  110. * attribution will be updated. (table.update) 
  111. * @param string $tableId ID of the table that is being updated. 
  112. * @param Google_Table $postBody 
  113. * @param array $optParams Optional parameters. 
  114. * @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition. 
  115. * @return Google_Table 
  116. */ 
  117. public function update($tableId, Google_Table $postBody, $optParams = array()) { 
  118. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  119. $params = array_merge($params, $optParams); 
  120. $data = $this->__call('update', array($params)); 
  121. if ($this->useObjects()) { 
  122. return new Google_Table($data); 
  123. } else { 
  124. return $data;