Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Fusiontables_Table_Resource Class Reference

The "table" collection of methods. More...

Inheritance diagram for Google_Service_Fusiontables_Table_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 copy ($tableId, $optParams=array())
 Copies a table.
 
 delete ($tableId, $optParams=array())
 Deletes a table.
 
 get ($tableId, $optParams=array())
 Retrieves a specific table by its ID.
 
 importRows ($tableId, $optParams=array())
 Imports more rows into a table.
 
 importTable ($name, $optParams=array())
 Imports a new table.
 
 insert (Google_Service_Fusiontables_Table $postBody, $optParams=array())
 Creates a new table.
 
 listTable ($optParams=array())
 Retrieves a list of tables a user owns.
 
 patch ($tableId, Google_Service_Fusiontables_Table $postBody, $optParams=array())
 Updates an existing table.
 
 replaceRows ($tableId, $optParams=array())
 Replaces rows of an existing table.
 
 update ($tableId, Google_Service_Fusiontables_Table $postBody, $optParams=array())
 Updates an existing table.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "table" collection of methods.

Typical usage is: $fusiontablesService = new Google_Service_Fusiontables(...); $table = $fusiontablesService->table;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ copy()

Google_Service_Fusiontables_Table_Resource::copy ( $tableId,
$optParams = array() )

Copies a table.

(table.copy)

Parameters
string$tableIdID of the table that is being copied.
array$optParamsOptional parameters.

@opt_param bool copyPresentation Whether to also copy tabs, styles, and templates. Default is false.

Return values
Google_Service_Fusiontables_Table

◆ delete()

Google_Service_Fusiontables_Table_Resource::delete ( $tableId,
$optParams = array() )

Deletes a table.

(table.delete)

Parameters
string$tableIdID of the table to be deleted.
array$optParamsOptional parameters.

◆ get()

Google_Service_Fusiontables_Table_Resource::get ( $tableId,
$optParams = array() )

Retrieves a specific table by its ID.

(table.get)

Parameters
string$tableIdIdentifier for the table being requested.
array$optParamsOptional parameters.
Return values
Google_Service_Fusiontables_Table

◆ importRows()

Google_Service_Fusiontables_Table_Resource::importRows ( $tableId,
$optParams = array() )

Imports more rows into a table.

(table.importRows)

Parameters
string$tableIdThe table into which new rows are being imported.
array$optParamsOptional parameters.

@opt_param int startLine The index of the first line from which to start importing, inclusive. Default is 0. @opt_param bool isStrict Whether the imported 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. @opt_param string encoding The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding. @opt_param string delimiter The delimiter used to separate cell values. This can only consist of a single character. Default is ,. @opt_param int endLine The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.

Return values
Google_Service_Fusiontables_Import

◆ importTable()

Google_Service_Fusiontables_Table_Resource::importTable ( $name,
$optParams = array() )

Imports a new table.

(table.importTable)

Parameters
string$nameThe name to be assigned to the new table.
array$optParamsOptional parameters.

@opt_param string delimiter The delimiter used to separate cell values. This can only consist of a single character. Default is ,. @opt_param string encoding The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.

Return values
Google_Service_Fusiontables_Table

◆ insert()

Google_Service_Fusiontables_Table_Resource::insert ( Google_Service_Fusiontables_Table $postBody,
$optParams = array() )

Creates a new table.

(table.insert)

Parameters
Google_Table$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Fusiontables_Table

◆ listTable()

Google_Service_Fusiontables_Table_Resource::listTable ( $optParams = array())

Retrieves a list of tables a user owns.

(table.listTable)

Parameters
array$optParamsOptional parameters.

@opt_param string pageToken Continuation token specifying which result page to return. @opt_param string maxResults Maximum number of tables to return. Default is 5.

Return values
Google_Service_Fusiontables_TableList

◆ patch()

Google_Service_Fusiontables_Table_Resource::patch ( $tableId,
Google_Service_Fusiontables_Table $postBody,
$optParams = array() )

Updates an existing table.

Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics. (table.patch)

Parameters
string$tableIdID of the table that is being updated.
Google_Table$postBody
array$optParamsOptional parameters.

@opt_param bool replaceViewDefinition Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.

Return values
Google_Service_Fusiontables_Table

◆ replaceRows()

Google_Service_Fusiontables_Table_Resource::replaceRows ( $tableId,
$optParams = array() )

Replaces rows of an existing table.

Current rows remain visible until all replacement rows are ready. (table.replaceRows)

Parameters
string$tableIdTable whose rows will be replaced.
array$optParamsOptional parameters.

@opt_param int startLine The index of the first line from which to start importing, inclusive. Default is 0. @opt_param bool isStrict Whether the imported CSV must have the same number of column values for each row. If true, throws an exception if the CSV does not have the same number of columns. If false, rows with fewer column values will be padded with empty values. Default is true. @opt_param string encoding The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding. @opt_param string delimiter The delimiter used to separate cell values. This can only consist of a single character. Default is ,. @opt_param int endLine The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.

Return values
Google_Service_Fusiontables_Task

◆ update()

Google_Service_Fusiontables_Table_Resource::update ( $tableId,
Google_Service_Fusiontables_Table $postBody,
$optParams = array() )

Updates an existing table.

Unless explicitly requested, only the name, description, and attribution will be updated. (table.update)

Parameters
string$tableIdID of the table that is being updated.
Google_Table$postBody
array$optParamsOptional parameters.

@opt_param bool replaceViewDefinition Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.

Return values
Google_Service_Fusiontables_Table

The documentation for this class was generated from the following file: