form.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. $config->deploy->form = new stdclass();
  3. $config->deploy->form->manageScope = array();
  4. $config->deploy->form->manageScope['service'] = array('type' => 'int', 'required' => true, 'default' => '', 'base' => true);
  5. $config->deploy->form->manageScope['hosts'] = array('type' => 'array', 'required' => false, 'default' => array());
  6. $config->deploy->form->manageScope['remove'] = array('type' => 'array', 'required' => false, 'default' => array());
  7. $config->deploy->form->manageScope['add'] = array('type' => 'array', 'required' => false, 'default' => array());
  8. $config->deploy->form->manageStep = array();
  9. $config->deploy->form->manageStep['id'] = array('type' => 'array', 'required' => false, 'default' => array());
  10. $config->deploy->form->manageStep['title'] = array('type' => 'array', 'required' => true, 'default' => array());
  11. $config->deploy->form->manageStep['content'] = array('type' => 'array', 'required' => false, 'default' => array());
  12. $config->deploy->form->editStep = array();
  13. $config->deploy->form->editStep['status'] = array('type' => 'string', 'required' => false, 'default' => '');
  14. $config->deploy->form->editStep['title'] = array('type' => 'string', 'required' => true, 'default' => '');
  15. $config->deploy->form->editStep['content'] = array('type' => 'string', 'required' => false, 'default' => '');
  16. $config->deploy->form->editStep['assignedTo'] = array('type' => 'string', 'required' => false, 'default' => '');
  17. $config->deploy->form->editStep['finishedBy'] = array('type' => 'string', 'required' => false, 'default' => '');
  18. $config->deploy->form->create = array();
  19. $config->deploy->form->create['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  20. $config->deploy->form->create['host'] = array('type' => 'int', 'required' => false, 'default' => 0);
  21. $config->deploy->form->create['desc'] = array('type' => 'string', 'required' => false, 'default' => '', 'filter' => 'trim', 'control' => 'editor');
  22. $config->deploy->form->create['owner'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  23. $config->deploy->form->create['estimate'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  24. $config->deploy->form->create['members'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  25. $config->deploy->form->create['products'] = array('type' => 'array', 'required' => false, 'default' => array());
  26. $config->deploy->form->create['release'] = array('type' => 'array', 'required' => false, 'default' => array());
  27. $config->deploy->form->create['createdDate'] = array('type' => 'string', 'required' => false, 'default' => helper::now());
  28. $config->deploy->form->edit = array();
  29. $config->deploy->form->edit['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  30. $config->deploy->form->edit['host'] = array('type' => 'int', 'required' => false, 'default' => 0);
  31. $config->deploy->form->edit['desc'] = array('type' => 'string', 'required' => false, 'default' => '', 'filter' => 'trim', 'control' => 'editor');
  32. $config->deploy->form->edit['owner'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  33. $config->deploy->form->edit['estimate'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  34. $config->deploy->form->edit['members'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  35. $config->deploy->form->edit['products'] = array('type' => 'array', 'required' => false, 'default' => array());
  36. $config->deploy->form->edit['release'] = array('type' => 'array', 'required' => false, 'default' => array());
  37. $config->deploy->form->activate = array();
  38. $config->deploy->form->activate['begin'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  39. $config->deploy->form->activate['end'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  40. $config->deploy->form->finish = array();
  41. $config->deploy->form->finish['begin'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  42. $config->deploy->form->finish['end'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  43. $config->deploy->form->finish['members'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  44. $config->deploy->form->finish['result'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');