feedback.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. * @return int|false
  4. * @param object $story
  5. * @param int $executionID
  6. * @param int $bugID
  7. * @param string $extra
  8. * @param int $todoID
  9. */
  10. public function create($story, $executionID = 0, $bugID = 0, $extra = '', $todoID = 0)
  11. {
  12. return $this->loadExtension('feedback')->create($story, $executionID, $bugID, $extra, $todoID);
  13. }
  14. /**
  15. * @param string|bool $comment
  16. * @return bool|int
  17. * @param object $story
  18. * @param int $storyID
  19. */
  20. public function update($storyID, $story, $comment = '')
  21. {
  22. return $this->loadExtension('feedback')->update($storyID, $story, $comment);
  23. }
  24. /**
  25. * @return mixed[]|false
  26. * @param object $story
  27. * @param int $storyID
  28. */
  29. public function change($storyID, $story)
  30. {
  31. return $this->loadExtension('feedback')->change($storyID, $story);
  32. }
  33. /**
  34. * @param int $storyID
  35. */
  36. public function recallChange($storyID)
  37. {
  38. $this->loadExtension('feedback')->recallChange($storyID);
  39. }
  40. /**
  41. * @return object|false
  42. * @param int $storyID
  43. * @param int $version
  44. * @param bool $setImgSize
  45. */
  46. public function getByID($storyID, $version = 0, $setImgSize = false)
  47. {
  48. return $this->loadExtension('feedback')->getById($storyID, $version, $setImgSize);
  49. }
  50. /**
  51. * @param int $productID
  52. * @param int $storyID
  53. */
  54. public function relieveTwins($productID, $storyID)
  55. {
  56. return $this->loadExtension('feedback')->relieveTwins($productID, $storyID);
  57. }
  58. /**
  59. * @param int|mixed[] $executionID
  60. * @param mixed[]|string $excludeStories
  61. * @param int $productID
  62. * @param string $orderBy
  63. * @param string $browseType
  64. * @param string $param
  65. * @param string $storyType
  66. */
  67. public function getExecutionStories($executionID = 0, $productID = 0, $orderBy = 't1.`order`_desc', $browseType = 'byModule', $param = '0', $storyType = 'story', $excludeStories = '', $pager = null)
  68. {
  69. return $this->loadExtension('feedback')->getExecutionStories($executionID, $productID, $orderBy, $browseType, $param, $storyType, $excludeStories, $pager);
  70. }