Google_PagesServiceResource

The "pages" collection of methods.

Defined (1)

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

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