Google_TopicsServiceResource

The "topics" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_ModeratorService.php  
  1. class Google_TopicsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Inserts a new topic into the specified series. (topics.insert) 
  6. * @param string $seriesId The decimal ID of the Series. 
  7. * @param Google_Topic $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Topic 
  10. */ 
  11. public function insert($seriesId, Google_Topic $postBody, $optParams = array()) { 
  12. $params = array('seriesId' => $seriesId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('insert', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Topic($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Searches the topics within the specified series and returns the search results. (topics.list) 
  21. * @param string $seriesId The decimal ID of the Series. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string max-results Maximum number of results to return. 
  24. * @opt_param string q Search query. 
  25. * @opt_param string start-index Index of the first result to be retrieved. 
  26. * @opt_param string mode 
  27. * @return Google_TopicList 
  28. */ 
  29. public function listTopics($seriesId, $optParams = array()) { 
  30. $params = array('seriesId' => $seriesId); 
  31. $params = array_merge($params, $optParams); 
  32. $data = $this->__call('list', array($params)); 
  33. if ($this->useObjects()) { 
  34. return new Google_TopicList($data); 
  35. } else { 
  36. return $data; 
  37. /** 
  38. * Updates the specified topic within the specified series. (topics.update) 
  39. * @param string $seriesId The decimal ID of the Series. 
  40. * @param string $topicId The decimal ID of the Topic within the Series. 
  41. * @param Google_Topic $postBody 
  42. * @param array $optParams Optional parameters. 
  43. * @return Google_Topic 
  44. */ 
  45. public function update($seriesId, $topicId, Google_Topic $postBody, $optParams = array()) { 
  46. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody); 
  47. $params = array_merge($params, $optParams); 
  48. $data = $this->__call('update', array($params)); 
  49. if ($this->useObjects()) { 
  50. return new Google_Topic($data); 
  51. } else { 
  52. return $data; 
  53. /** 
  54. * Returns the specified topic from the specified series. (topics.get) 
  55. * @param string $seriesId The decimal ID of the Series. 
  56. * @param string $topicId The decimal ID of the Topic within the Series. 
  57. * @param array $optParams Optional parameters. 
  58. * @return Google_Topic 
  59. */ 
  60. public function get($seriesId, $topicId, $optParams = array()) { 
  61. $params = array('seriesId' => $seriesId, 'topicId' => $topicId); 
  62. $params = array_merge($params, $optParams); 
  63. $data = $this->__call('get', array($params)); 
  64. if ($this->useObjects()) { 
  65. return new Google_Topic($data); 
  66. } else { 
  67. return $data;