form.php 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. $config->repo->form = new stdclass();
  3. $config->repo->form->create = array();
  4. $config->repo->form->create['product'] = array('required' => true, 'type' => 'array');
  5. $config->repo->form->create['projects'] = array('required' => false, 'type' => 'array', 'default' => array());
  6. $config->repo->form->create['SCM'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  7. $config->repo->form->create['serviceHost'] = array('required' => false, 'type' => 'int');
  8. $config->repo->form->create['serviceProject'] = array('required' => false, 'type' => 'string', 'default' => '');
  9. $config->repo->form->create['name'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  10. $config->repo->form->create['path'] = array('required' => false, 'type' => 'string', 'default' => '');
  11. $config->repo->form->create['encoding'] = array('required' => false, 'type' => 'string', 'default' => 'utf-8');
  12. $config->repo->form->create['client'] = array('required' => false, 'type' => 'string', 'default' => '');
  13. $config->repo->form->create['account'] = array('required' => false, 'type' => 'string', 'default' => '');
  14. $config->repo->form->create['password'] = array('required' => false, 'type' => 'string', 'default' => '');
  15. $config->repo->form->create['encrypt'] = array('required' => false, 'type' => 'string', 'default' => '');
  16. $config->repo->form->create['desc'] = array('required' => false, 'type' => 'string', 'default' => '');
  17. $config->repo->form->edit = array();
  18. $config->repo->form->edit['product'] = array('required' => true, 'type' => 'array');
  19. $config->repo->form->edit['projects'] = array('required' => false, 'type' => 'array', 'default' => array());
  20. $config->repo->form->edit['SCM'] = array('required' => true, 'type' => 'string','default' => '', 'filter' => 'trim');
  21. $config->repo->form->edit['serviceHost'] = array('required' => false, 'type' => 'int');
  22. $config->repo->form->edit['serviceProject'] = array('required' => false, 'type' => 'string', 'default' => '');
  23. $config->repo->form->edit['name'] = array('required' => true, 'type' => 'string', 'default' => '', 'filter' => 'trim');
  24. $config->repo->form->edit['path'] = array('required' => false, 'type' => 'string', 'default' => '');
  25. $config->repo->form->edit['encoding'] = array('required' => false, 'type' => 'string', 'default' => 'utf-8');
  26. $config->repo->form->edit['client'] = array('required' => false, 'type' => 'string', 'default' => '');
  27. $config->repo->form->edit['account'] = array('required' => false, 'type' => 'string', 'default' => '');
  28. $config->repo->form->edit['password'] = array('required' => false, 'type' => 'string', 'default' => '');
  29. $config->repo->form->edit['encrypt'] = array('required' => false, 'type' => 'string', 'default' => '');
  30. $config->repo->form->edit['desc'] = array('required' => false, 'type' => 'string', 'default' => '');
  31. $config->repo->form->createRepo = array();
  32. $config->repo->form->createRepo['product'] = array('required' => true, 'type' => 'array', 'default' => array(), 'filter' => 'join');
  33. $config->repo->form->createRepo['projects'] = array('required' => false, 'type' => 'array', 'default' => array(), 'filter' => 'join');
  34. $config->repo->form->createRepo['serviceHost'] = array('required' => false, 'type' => 'int');
  35. $config->repo->form->createRepo['namespace'] = array('required' => true, 'type' => 'string');
  36. $config->repo->form->createRepo['name'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  37. $config->repo->form->createRepo['desc'] = array('required' => false, 'type' => 'string', 'default' => '');
  38. $config->repo->form->createRepo['client'] = array('required' => false, 'type' => 'string', 'default' => 'git');
  39. $config->repo->form->createRepo['SCM'] = array('required' => false, 'type' => 'string', 'default' => 'Gitlab');
  40. $config->repo->form->createRepo['encoding'] = array('required' => false, 'type' => 'string', 'default' => 'utf-8');
  41. $config->repo->form->createRepo['encrypt'] = array('required' => false, 'type' => 'string', 'default' => 'plain');
  42. $config->repo->form->createBranch = array();
  43. $config->repo->form->createBranch['codeRepo'] = array('required' => true, 'type' => 'int');
  44. $config->repo->form->createBranch['branchFrom'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  45. $config->repo->form->createBranch['branchName'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  46. $config->repo->form->import = array();
  47. $config->repo->form->import['serviceProject'] = array('required' => true, 'type' => 'string', 'filter' => 'trim');
  48. $config->repo->form->import['product'] = array('required' => false, 'type' => 'array', 'filter' => 'join', 'default' => array(), 'base' => true);
  49. $config->repo->form->import['projects'] = array('required' => false, 'type' => 'array', 'filter' => 'join', 'default' => array());
  50. $config->repo->form->import['name'] = array('required' => false, 'type' => 'string', 'filter' => 'trim');
  51. $config->repo->form->import['encoding'] = array('required' => false, 'type' => 'string', 'default' => 'utf-8');
  52. $config->repo->form->import['encrypt'] = array('required' => false, 'type' => 'string', 'default' => 'base64');
  53. $config->repo->form->import['acl'] = array('required' => false, 'type' => 'string', 'default' => '{"acl":"open","groups":[""],"users":[""]}');