Google_PagesServiceResource

The "pages" collection of methods.

Defined (1)

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

/google-api-php-client/src/contrib/Google_BloggerService.php  
  1. class Google_PagesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets one blog page by id. (pages.get) 
  5. * @param string $blogId ID of the blog containing the page. 
  6. * @param string $pageId The ID of the page to get. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Page 
  9. */ 
  10. public function get($blogId, $pageId, $optParams = array()) { 
  11. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Page($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Retrieves pages for a blog, possibly filtered. (pages.list) 
  20. * @param string $blogId ID of the blog to fetch pages from. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param bool fetchBodies Whether to retrieve the Page bodies. 
  23. * @return Google_PageList 
  24. */ 
  25. public function listPages($blogId, $optParams = array()) { 
  26. $params = array('blogId' => $blogId); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('list', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_PageList($data); 
  31. } else { 
  32. return $data;