Google_ChildrenServiceResource

The "children" collection of methods.

Defined (1)

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

/gdwpm-api/contrib/Google_DriveService.php  
  1. class Google_ChildrenServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Removes a child from a folder. (children.delete) 
  5. * @param string $folderId The ID of the folder. 
  6. * @param string $childId The ID of the child. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($folderId, $childId, $optParams = array()) { 
  10. $params = array('folderId' => $folderId, 'childId' => $childId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data; 
  14. /** 
  15. * Gets a specific child reference. (children.get) 
  16. * @param string $folderId The ID of the folder. 
  17. * @param string $childId The ID of the child. 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_ChildReference 
  20. */ 
  21. public function get($folderId, $childId, $optParams = array()) { 
  22. $params = array('folderId' => $folderId, 'childId' => $childId); 
  23. $params = array_merge($params, $optParams); 
  24. $data = $this->__call('get', array($params)); 
  25. if ($this->useObjects()) { 
  26. return new Google_ChildReference($data); 
  27. } else { 
  28. return $data; 
  29. /** 
  30. * Inserts a file into a folder. (children.insert) 
  31. * @param string $folderId The ID of the folder. 
  32. * @param Google_ChildReference $postBody 
  33. * @param array $optParams Optional parameters. 
  34. * @return Google_ChildReference 
  35. */ 
  36. public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) { 
  37. $params = array('folderId' => $folderId, 'postBody' => $postBody); 
  38. $params = array_merge($params, $optParams); 
  39. $data = $this->__call('insert', array($params)); 
  40. if ($this->useObjects()) { 
  41. return new Google_ChildReference($data); 
  42. } else { 
  43. return $data; 
  44. /** 
  45. * Lists a folder's children. (children.list) 
  46. * @param string $folderId The ID of the folder. 
  47. * @param array $optParams Optional parameters. 
  48. * @opt_param int maxResults Maximum number of children to return. 
  49. * @opt_param string pageToken Page token for children. 
  50. * @opt_param string q Query string for searching children. 
  51. * @return Google_ChildList 
  52. */ 
  53. public function listChildren($folderId, $optParams = array()) { 
  54. $params = array('folderId' => $folderId); 
  55. $params = array_merge($params, $optParams); 
  56. $data = $this->__call('list', array($params)); 
  57. if ($this->useObjects()) { 
  58. return new Google_ChildList($data); 
  59. } else { 
  60. return $data;