zentaomax.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. /**
  3. * @param object $report
  4. */
  5. public function create($report)
  6. {
  7. return $this->loadExtension('zentaomax')->create($report);
  8. }
  9. /**
  10. * @param string|int $moduleID
  11. * @param int $projectID
  12. * @param string $browseType
  13. * @param string $orderBy
  14. * @param int $limit
  15. */
  16. public function getList($projectID = 0, $browseType = 'all', $moduleID = '', $orderBy = 'id_desc', $limit = 0)
  17. {
  18. return $this->loadExtension('zentaomax')->getList($projectID, $browseType, $moduleID, $orderBy, $limit);
  19. }
  20. /**
  21. * @param string $period
  22. */
  23. public function getBeginAndEnd($period = '')
  24. {
  25. return $this->loadExtension('zentaomax')->getBeginAndEnd($period);
  26. }
  27. /**
  28. * @param object $report
  29. * @param string $action
  30. */
  31. public function isClickable($report, $action)
  32. {
  33. return $this->loadExtension('zentaomax')->isClickable($report, $action);
  34. }
  35. /**
  36. * @param int $queryID
  37. * @param string $actionURL
  38. */
  39. public function buildSearchForm($queryID, $actionURL)
  40. {
  41. return $this->loadExtension('zentaomax')->buildSearchForm($queryID, $actionURL);
  42. }
  43. /**
  44. * @param int $projectID
  45. * @param int $queryID
  46. * @param string $orderBy
  47. */
  48. public function getBySearch($projectID = 0, $queryID = 0, $orderBy = 'id_desc')
  49. {
  50. return $this->loadExtension('zentaomax')->getBySearch($projectID, $queryID, $orderBy);
  51. }
  52. /**
  53. * @param int $templateID
  54. * @param int $reportID
  55. */
  56. public function getTemplateContent($templateID, $reportID = 0)
  57. {
  58. return $this->loadExtension('zentaomax')->getTemplateContent($templateID, $reportID);
  59. }
  60. /**
  61. * @param int $reportID
  62. */
  63. public function deleteReport($reportID)
  64. {
  65. return $this->loadExtension('zentaomax')->deleteReport($reportID);
  66. }
  67. /**
  68. * @param int $projectID
  69. * @param string $end
  70. */
  71. public function buildSummaryTable($projectID, $end = '')
  72. {
  73. return $this->loadExtension('zentaomax')->buildSummaryTable($projectID, $end);
  74. }
  75. /**
  76. * @param int $projectID
  77. */
  78. public function buildWorkloadTable($projectID)
  79. {
  80. return $this->loadExtension('zentaomax')->buildWorkloadTable($projectID);
  81. }
  82. /**
  83. * @param int $projectID
  84. * @param string $browseType
  85. */
  86. public function getModuleTree($projectID, $browseType)
  87. {
  88. return $this->loadExtension('zentaomax')->getModuleTree($projectID, $browseType);
  89. }
  90. /**
  91. * @param object $moduleData
  92. */
  93. public function addCategory($moduleData)
  94. {
  95. return $this->loadExtension('zentaomax')->addCategory($moduleData);
  96. }
  97. /**
  98. * @param object $moduleData
  99. * @param int $moduleID
  100. */
  101. public function updateCategory($moduleID, $moduleData)
  102. {
  103. return $this->loadExtension('zentaomax')->updateCategory($moduleID, $moduleData);
  104. }
  105. /**
  106. * @param int $moduleID
  107. */
  108. public function deleteCategory($moduleID)
  109. {
  110. return $this->loadExtension('zentaomax')->deleteCategory($moduleID);
  111. }
  112. /**
  113. * @param int $projectID
  114. * @param string $mode
  115. */
  116. public function getModulePairs($projectID, $mode = '')
  117. {
  118. return $this->loadExtension('zentaomax')->getModulePairs($projectID, $mode);
  119. }
  120. /**
  121. * @param object $reportContent
  122. * @return object
  123. * @param int $reportID
  124. * @param int $projectID
  125. */
  126. public function copyDocBlock($reportID, $reportContent, $projectID)
  127. {
  128. return $this->loadExtension('zentaomax')->copyDocBlock($reportID, $reportContent, $projectID);
  129. }