Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Drive_Children_Resource Class Reference

The "children" collection of methods. More...

Inheritance diagram for Google_Service_Drive_Children_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 delete ($folderId, $childId, $optParams=array())
 Removes a child from a folder.
 
 get ($folderId, $childId, $optParams=array())
 Gets a specific child reference.
 
 insert ($folderId, Google_Service_Drive_ChildReference $postBody, $optParams=array())
 Inserts a file into a folder.
 
 listChildren ($folderId, $optParams=array())
 Lists a folder's children.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "children" collection of methods.

Typical usage is: $driveService = new Google_Service_Drive(...); $children = $driveService->children;

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

◆ delete()

Google_Service_Drive_Children_Resource::delete ( $folderId,
$childId,
$optParams = array() )

Removes a child from a folder.

(children.delete)

Parameters
string$folderIdThe ID of the folder.
string$childIdThe ID of the child.
array$optParamsOptional parameters.

◆ get()

Google_Service_Drive_Children_Resource::get ( $folderId,
$childId,
$optParams = array() )

Gets a specific child reference.

(children.get)

Parameters
string$folderIdThe ID of the folder.
string$childIdThe ID of the child.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_ChildReference

◆ insert()

Google_Service_Drive_Children_Resource::insert ( $folderId,
Google_Service_Drive_ChildReference $postBody,
$optParams = array() )

Inserts a file into a folder.

(children.insert)

Parameters
string$folderIdThe ID of the folder.
Google_ChildReference$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Drive_ChildReference

◆ listChildren()

Google_Service_Drive_Children_Resource::listChildren ( $folderId,
$optParams = array() )

Lists a folder's children.

(children.listChildren)

Parameters
string$folderIdThe ID of the folder.
array$optParamsOptional parameters.

@opt_param string orderBy A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. @opt_param string pageToken Page token for children. @opt_param string q Query string for searching children. @opt_param int maxResults Maximum number of children to return.

Return values
Google_Service_Drive_ChildList

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