zentaomax.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 创建一个迭代。
  4. * Create a execution.
  5. *
  6. * @param object $execution
  7. * @param array $postMembers
  8. * @access public
  9. * @return int|false
  10. */
  11. public function create($execution, $postMembers)
  12. {
  13. return $this->loadExtension('zentaomax')->create($execution, $postMembers);
  14. }
  15. /**
  16. * 更新一个迭代。
  17. * Update a execution.
  18. *
  19. * @param int $executionID
  20. * @param object $postData
  21. * @access public
  22. * @return array|false
  23. */
  24. public function update($executionID, $postData)
  25. {
  26. return $this->loadExtension('zentaomax')->update($executionID, $postData);
  27. }
  28. /**
  29. * 关闭迭代。
  30. * Close execution.
  31. *
  32. * @param int $executionID
  33. * @param object $postData
  34. * @access public
  35. * @return int|false
  36. */
  37. public function close($executionID, $postData)
  38. {
  39. return $this->loadExtension('zentaomax')->close($executionID, $postData);
  40. }
  41. /**
  42. * 检查迭代是否有已上传的交付物。
  43. * Check if the execution has uploaded deliverable.
  44. *
  45. * @param object $execution
  46. * @access public
  47. * @return bool
  48. */
  49. public function hasUploadedDeliverable($execution)
  50. {
  51. return $this->loadExtension('zentaomax')->hasUploadedDeliverable($execution);
  52. }