form.php 1.9 KB

123456789101112131415161718192021222324
  1. <?php
  2. $config->branch->form = new stdclass();
  3. $config->branch->form->team = new stdclass();
  4. $config->branch->form->batchedit = array();
  5. $config->branch->form->batchedit['branchID'] = array('type' => 'int', 'required' => true, 'base' => true);
  6. $config->branch->form->batchedit['name'] = array('type' => 'string', 'required' => true);
  7. $config->branch->form->batchedit['desc'] = array('type' => 'string', 'required' => false, 'default' => '');
  8. $config->branch->form->batchedit['status'] = array('type' => 'string', 'required' => false, 'default' => 'active');
  9. $config->branch->form->create['name'] = array('type' => 'string', 'required' => true, 'default' => '');
  10. $config->branch->form->create['desc'] = array('type' => 'string', 'required' => false, 'default' => '');
  11. $config->branch->form->create['status'] = array('type' => 'string', 'required' => false, 'default' => 'active');
  12. $config->branch->form->create['createdDate'] = array('type' => 'string', 'required' => false, 'default' => helper::now());
  13. $config->branch->form->edit['name'] = array('type' => 'string', 'required' => true, 'default' => '');
  14. $config->branch->form->edit['desc'] = array('type' => 'string', 'required' => false, 'default' => '');
  15. $config->branch->form->edit['status'] = array('type' => 'string', 'required' => true, 'default' => '');
  16. $config->branch->form->mergebranch = $config->branch->form->create;
  17. $config->branch->form->mergebranch['name'] = array('type' => 'string', 'required' => false, 'default' => '');
  18. $config->branch->form->mergebranch['createBranch'] = array('type' => 'int', 'required' => false, 'default' => 0);
  19. $config->branch->form->mergebranch['targetBranch'] = array('type' => 'int', 'required' => false, 'default' => 0);
  20. $config->branch->form->mergebranch['mergedBranchIDList'] = array('type' => 'string', 'required' => false, 'default' => '');