Google_TagsServiceResource

The "tags" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_ModeratorService.php  
  1. class Google_TagsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Inserts a new tag for the specified submission within the specified series. (tags.insert) 
  6. * @param string $seriesId The decimal ID of the Series. 
  7. * @param string $submissionId The decimal ID of the Submission within the Series. 
  8. * @param Google_Tag $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Tag 
  11. */ 
  12. public function insert($seriesId, $submissionId, Google_Tag $postBody, $optParams = array()) { 
  13. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('insert', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_Tag($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Lists all tags for the specified submission within the specified series. (tags.list) 
  22. * @param string $seriesId The decimal ID of the Series. 
  23. * @param string $submissionId The decimal ID of the Submission within the Series. 
  24. * @param array $optParams Optional parameters. 
  25. * @return Google_TagList 
  26. */ 
  27. public function listTags($seriesId, $submissionId, $optParams = array()) { 
  28. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('list', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_TagList($data); 
  33. } else { 
  34. return $data; 
  35. /** 
  36. * Deletes the specified tag from the specified submission within the specified series. 
  37. * (tags.delete) 
  38. * @param string $seriesId The decimal ID of the Series. 
  39. * @param string $submissionId The decimal ID of the Submission within the Series. 
  40. * @param string $tagId 
  41. * @param array $optParams Optional parameters. 
  42. */ 
  43. public function delete($seriesId, $submissionId, $tagId, $optParams = array()) { 
  44. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId); 
  45. $params = array_merge($params, $optParams); 
  46. $data = $this->__call('delete', array($params)); 
  47. return $data;