Google_PagesServiceResource
The "pages" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /src/contrib/Google_BloggerService.php
- class Google_PagesServiceResource extends Google_ServiceResource {
- /**
- * Gets one blog page by id. (pages.get)
- *
- * @param string $blogId ID of the blog containing the page.
- * @param string $pageId The ID of the page to get.
- * @param array $optParams Optional parameters.
- * @return Google_Page
- */
- public function get($blogId, $pageId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'pageId' => $pageId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Page($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves pages for a blog, possibly filtered. (pages.list)
- *
- * @param string $blogId ID of the blog to fetch pages from.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
- * @return Google_PageList
- */
- public function listPages($blogId, $optParams = array()) {
- $params = array('blogId' => $blogId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PageList($data);
- } else {
- return $data;
- }
- }
- }