repo.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * Get review.
  4. *
  5. * @param int $repoID
  6. * @param string $entry
  7. * @param string $revision
  8. * @access public
  9. * @return array
  10. */
  11. public function getReview($repoID, $entry, $revision)
  12. {
  13. return $this->loadExtension('repo')->getReview($repoID, $entry, $revision);
  14. }
  15. /**
  16. * Get bugs by repo.
  17. *
  18. * @param int $repoID
  19. * @param string $browseType
  20. * @param int $executionID
  21. * @param array $bugs
  22. * @param string $orderBy
  23. * @param object $pager
  24. * @access public
  25. * @return array
  26. */
  27. public function getBugsByRepo($repoID, $browseType = '', $executionID = 0, $bugs = array(), $orderBy = 'id_desc', $pager = null)
  28. {
  29. return $this->loadExtension('repo')->getBugsByRepo($repoID, $browseType, $executionID, $bugs, $orderBy, $pager);
  30. }
  31. /**
  32. * Save bug.
  33. *
  34. * @param int $repoID
  35. * @param object $bug
  36. * @access public
  37. * @return array
  38. */
  39. public function saveBug($repoID, $bug)
  40. {
  41. return $this->loadExtension('repo')->savebug($repoID, $bug);
  42. }
  43. /**
  44. * Update bug.
  45. *
  46. * @param int $bugID
  47. * @param string $title
  48. * @access public
  49. * @return string
  50. */
  51. public function updateBug($bugID, $title)
  52. {
  53. return $this->loadExtension('repo')->updateBug($bugID, $title);
  54. }
  55. /**
  56. * Update comment.
  57. *
  58. * @param int $commentID
  59. * @param string $comment
  60. * @access public
  61. * @return string
  62. */
  63. public function updateComment($commentID, $comment)
  64. {
  65. return $this->loadExtension('repo')->updateComment($commentID, $comment);
  66. }
  67. /**
  68. * Delete comment.
  69. *
  70. * @param int $commentID
  71. * @access public
  72. * @return void
  73. */
  74. public function deleteComment($commentID)
  75. {
  76. return $this->loadExtension('repo')->deleteComment($commentID);
  77. }
  78. /**
  79. * Get last review info.
  80. *
  81. * @param string $entry
  82. * @access public
  83. * @return object
  84. */
  85. public function getLastReviewInfo($entry)
  86. {
  87. return $this->loadExtension('repo')->getLastReviewInfo($entry);
  88. }
  89. /**
  90. * Get linked objects by comment.
  91. *
  92. * @param string $comment
  93. * @access public
  94. * @return array
  95. */
  96. public function getLinkedObjects($comment)
  97. {
  98. return $this->loadExtension('repo')->getLinkedObjects($comment);
  99. }
  100. /**
  101. * Get diff file tree.
  102. *
  103. * @param string $diffs
  104. * @access public
  105. * @return object
  106. */
  107. public function getDiffFileTree($diffs)
  108. {
  109. return $this->loadExtension('repo')->getDiffFileTree($diffs);
  110. }
  111. /**
  112. * Get review comments.
  113. *
  114. * @param array $bugIDList
  115. * @access public
  116. * @return array
  117. */
  118. public function getComments($bugIDList)
  119. {
  120. return $this->loadExtension('repo')->getComments($bugIDList);
  121. }