Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
The "realtime" collection of methods. More...
Public Member Functions | |
call ($name, $arguments, $expected_class=null) | |
TODO: This function needs simplifying. | |
get ($fileId, $optParams=array()) | |
Exports the contents of the Realtime API data model associated with this file as JSON. | |
update ($fileId, $optParams=array()) | |
Overwrites the Realtime API data model associated with this file with the provided JSON data model. | |
Protected Member Functions | |
convertToArrayAndStripNulls ($o) | |
The "realtime" collection of methods.
Typical usage is: $driveService = new Google_Service_Drive(...); $realtime = $driveService->realtime;
|
inherited |
TODO: This function needs simplifying.
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
Google_Http_Request|expected_class |
Google_Exception |
Google_Service_Drive_Realtime_Resource::get | ( | $fileId, | |
$optParams = array() ) |
Exports the contents of the Realtime API data model associated with this file as JSON.
(realtime.get)
string | $fileId | The ID of the file that the Realtime API data model is associated with. |
array | $optParams | Optional parameters. |
@opt_param int revision The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.
Google_Service_Drive_Realtime_Resource::update | ( | $fileId, | |
$optParams = array() ) |
Overwrites the Realtime API data model associated with this file with the provided JSON data model.
(realtime.update)
string | $fileId | The ID of the file that the Realtime API data model is associated with. |
array | $optParams | Optional parameters. |
@opt_param string baseRevision The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.