GTUserQueryRequest.php 643 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. require_once(dirname(__FILE__) . '/' . '../GTApiRequest.php');
  3. class GTUserQueryRequest extends GTApiRequest
  4. {
  5. private $tag = array();
  6. public function getTag()
  7. {
  8. return $this->tag;
  9. }
  10. public function addTag($condition)
  11. {
  12. array_push($this->tag, $condition);
  13. }
  14. public function setTag($conditions)
  15. {
  16. $this->tag = $conditions;
  17. }
  18. public function getApiParam()
  19. {
  20. $this->apiParam["tag"] = array();
  21. foreach ($this->tag as $value) {
  22. array_push($this->apiParam["tag"], $value->getApiParam());
  23. }
  24. return $this->apiParam;
  25. }
  26. }