ajaxgetjenkinstasks.html.php 960 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The ajaxgetdropmenu view file of jenkins module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Zeng Gang<zenggang@easycorp.ltd>
  7. * @package jenkins
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $data['pipeline'] = $tasks;
  12. $tabs = array();
  13. $tabs[] = array('name' => 'pipeline', 'text' => $lang->pipeline->common);
  14. /**
  15. * 定义最终的 JSON 数据。
  16. * Define the final json data.
  17. */
  18. $json = array();
  19. $json['data'] = $data;
  20. $json['tabs'] = $tabs;
  21. $json['searchHint'] = $lang->searchAB;
  22. $json['link'] = array('pipeline' => '###');
  23. $json['itemType'] = 'pipeline';
  24. /**
  25. * 渲染 JSON 字符串并发送到客户端。
  26. * Render json data to string and send to client.
  27. */
  28. renderJson($json);