report.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * @return object
  4. * @param mixed[] $taskList
  5. */
  6. public function getBasicMetrics($taskList)
  7. {
  8. return $this->loadExtension('report')->getBasicMetrics($taskList);
  9. }
  10. /**
  11. * @param mixed[] $taskList
  12. */
  13. public function buildBasicChartConfig($taskList)
  14. {
  15. return $this->loadExtension('report')->buildBasicChartConfig($taskList);
  16. }
  17. /**
  18. * @param object $data
  19. * @return object
  20. * @param mixed[] $taskList
  21. * @param string $type
  22. */
  23. public function getProgressMetrics($taskList, $data, $type = 'execution')
  24. {
  25. return $this->loadExtension('report')->getProgressMetrics($taskList, $data, $type);
  26. }
  27. /**
  28. * @param object $data
  29. * @param mixed[] $taskList
  30. * @param string $type
  31. */
  32. public function buildProgressChartConfig($taskList, $data, $type = 'execution')
  33. {
  34. return $this->loadExtension('report')->buildProgressChartConfig($taskList, $data, $type);
  35. }
  36. /**
  37. * @param object $data
  38. * @return object
  39. * @param mixed[] $taskList
  40. */
  41. public function getResourceMetrics($taskList, $data, $type = 'execution')
  42. {
  43. return $this->loadExtension('report')->getResourceMetrics($taskList, $data, $type);
  44. }
  45. /**
  46. * @param object $data
  47. * @param mixed[] $taskList
  48. */
  49. public function buildResourceChartConfig($taskList, $data, $type = 'execution')
  50. {
  51. return $this->loadExtension('report')->buildResourceChartConfig($taskList, $data, $type);
  52. }
  53. /**
  54. * @return object
  55. * @param mixed[] $taskList
  56. * @param mixed[] $items
  57. */
  58. public function getMetricsCount($taskList, $items)
  59. {
  60. return $this->loadExtension('report')->getMetricsCount($taskList, $items);
  61. }
  62. /**
  63. * @return object
  64. * @param mixed[] $taskList
  65. * @param mixed[] $items
  66. * @param int $objectID
  67. * @param string $type
  68. */
  69. public function getMetricsChart($taskList, $items, $objectID = 0, $type = 'execution')
  70. {
  71. return $this->loadExtension('report')->getMetricsChart($taskList, $items, $objectID, $type);
  72. }
  73. /**
  74. * @return object
  75. * @param mixed[] $taskList
  76. * @param mixed[] $items
  77. * @param string $type
  78. */
  79. public function getMetricsTable($taskList, $items, $data = null, $type = 'execution')
  80. {
  81. return $this->loadExtension('report')->getMetricsTable($taskList, $items, $data, $type);
  82. }
  83. /**
  84. * @param object $data
  85. * @param mixed[] $taskList
  86. * @param string $type
  87. */
  88. public function processDateLimitForTasks($taskList, $data, $type)
  89. {
  90. return $this->loadExtension('report')->processDateLimitForTasks($taskList, $data, $type);
  91. }
  92. /**
  93. * @return object
  94. * @param mixed[] $taskList
  95. * @param mixed[] $items
  96. * @param int $objectID
  97. * @param string $type
  98. */
  99. public function getEffortMetrics($taskList, $items, $objectID = 0, $type = 'execution')
  100. {
  101. return $this->loadExtension('report')->getEffortMetrics($taskList, $items, $objectID, $type);
  102. }