gantt.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * The control file of execution module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2012 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license business(商业软件)
  7. * @author Yangyang Shi <shiyangyang@cnezsoft.com>
  8. * @package execution
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. * @param mixed[] $relations
  12. */
  13. public function mergeRelations($relations = array())
  14. {
  15. return $this->loadExtension('gantt')->mergeRelations($relations);
  16. }
  17. /**
  18. * @param mixed[] $taskList
  19. * @param int $projectID
  20. * @param int $executionID
  21. * @param mixed[] $appendTasks
  22. */
  23. public function getRelationTasks($taskList, $projectID, $executionID, $appendTasks = array())
  24. {
  25. return $this->loadExtension('gantt')->getRelationTasks($taskList, $projectID, $executionID, $appendTasks);
  26. }
  27. /**
  28. * @param mixed[] $taskRelations
  29. * @param int $taskID
  30. * @param string $taskType
  31. */
  32. public function getDisabledTasks($taskRelations, $taskID, $taskType)
  33. {
  34. return $this->loadExtension('gantt')->getDisabledTasks($taskRelations, $taskID, $taskType);
  35. }
  36. /**
  37. * @param mixed[] $relations
  38. * @param int $projectID
  39. * @param mixed[] $tasks
  40. */
  41. public function checkRelation($relations = array(), $projectID = 0, $tasks = array())
  42. {
  43. return $this->loadExtension('gantt')->checkRelation($relations, $projectID, $tasks);
  44. }
  45. /**
  46. * @param int $projectID
  47. * @param int $executionID
  48. */
  49. public function createRelationOfTasks($projectID, $executionID)
  50. {
  51. return $this->loadExtension('gantt')->createRelationOfTasks($projectID, $executionID);
  52. }
  53. /**
  54. * @param int $relationID
  55. * @param int $projectID
  56. */
  57. public function updateRelationOfTask($relationID, $projectID)
  58. {
  59. return $this->loadExtension('gantt')->updateRelationOfTask($relationID, $projectID);
  60. }
  61. /**
  62. * @param int $projectID
  63. */
  64. public function editRelationOfTasks($projectID)
  65. {
  66. return $this->loadExtension('gantt')->editRelationOfTasks($projectID);
  67. }
  68. /**
  69. * @param int $projectID
  70. * @param int $executionID
  71. */
  72. public function getRelationsOfTasks($projectID, $executionID, $pager = null)
  73. {
  74. return $this->loadExtension('gantt')->getRelationsOfTasks($projectID, $executionID, $pager);
  75. }
  76. /**
  77. * @param int $executionID
  78. * @param string $type
  79. * @param string $orderBy
  80. */
  81. public function getDataForGantt($executionID, $type, $orderBy)
  82. {
  83. return $this->loadExtension('gantt')->getDataForGantt($executionID, $type, $orderBy);
  84. }
  85. /**
  86. * @param int $relationID
  87. */
  88. public function deleteRelation($relationID)
  89. {
  90. return $this->loadExtension('gantt')->deleteRelation($relationID);
  91. }
  92. /**
  93. * @param string $orderBy
  94. */
  95. public function parseOrderBy($orderBy)
  96. {
  97. return $this->loadExtension('gantt')->parseOrderBy($orderBy);
  98. }
  99. /**
  100. * @param string $field
  101. * @param string $currentOrder
  102. * @param string $currentDirect
  103. */
  104. public function buildKanbanOrderBy($field, $currentOrder, $currentDirect)
  105. {
  106. return $this->loadExtension('gantt')->buildKanbanOrderBy($field, $currentOrder, $currentDirect);
  107. }
  108. /**
  109. * @param mixed[] $relations
  110. * @param int $projectID
  111. */
  112. public function checkTaskRelation($relations, $projectID)
  113. {
  114. return $this->loadExtension('gantt')->checkTaskRelation($relations, $projectID);
  115. }