Google_LayersServiceResource

The "layers" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_BooksService.php  
  1. class Google_LayersServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List the layer summaries for a volume. (layers.list) 
  6. * @param string $volumeId The volume to retrieve layers for. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string pageToken The value of the nextToken from the previous page. 
  9. * @opt_param string contentVersion The content version for the requested volume. 
  10. * @opt_param string maxResults Maximum number of results to return 
  11. * @opt_param string source String to identify the originator of this request. 
  12. * @return Google_Layersummaries 
  13. */ 
  14. public function listLayers($volumeId, $optParams = array()) { 
  15. $params = array('volumeId' => $volumeId); 
  16. $params = array_merge($params, $optParams); 
  17. $data = $this->__call('list', array($params)); 
  18. if ($this->useObjects()) { 
  19. return new Google_Layersummaries($data); 
  20. } else { 
  21. return $data; 
  22. /** 
  23. * Gets the layer summary for a volume. (layers.get) 
  24. * @param string $volumeId The volume to retrieve layers for. 
  25. * @param string $summaryId The ID for the layer to get the summary for. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param string source String to identify the originator of this request. 
  28. * @opt_param string contentVersion The content version for the requested volume. 
  29. * @return Google_Layersummary 
  30. */ 
  31. public function get($volumeId, $summaryId, $optParams = array()) { 
  32. $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId); 
  33. $params = array_merge($params, $optParams); 
  34. $data = $this->__call('get', array($params)); 
  35. if ($this->useObjects()) { 
  36. return new Google_Layersummary($data); 
  37. } else { 
  38. return $data;