config.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $config->demandpool = new stdclass();
  3. $config->demandpool->create = new stdclass();
  4. $config->demandpool->edit = new stdclass();
  5. $config->demandpool->create->requiredFields = 'name,owner,reviewer';
  6. $config->demandpool->edit->requiredFields = $config->demandpool->create->requiredFields;
  7. $config->demandpool->editor = new stdclass();
  8. $config->demandpool->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
  9. $config->demandpool->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');
  10. $config->demandpool->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools');
  11. $config->demandpool->editor->activate = array('id' => 'comment', 'tools' => 'simpleTools');
  12. $config->demandpool->editor->close = array('id' => 'comment', 'tools' => 'simpleTools');
  13. $config->demandpool->editor->activate = array('id' => 'comment', 'tools' => 'simpleTools');
  14. $config->demandpool->export = new stdclass();
  15. $config->demandpool->import = new stdclass();
  16. $config->demandpool->export->listFields = explode(',', "status,owner,pri");
  17. $config->demandpool->export->templateFields = explode(',', "name,owner,desc");
  18. $config->demandpool->list = new stdclass();
  19. $config->demandpool->list->exportFields = 'id, name, status, pri, owner, desc, createdBy, createdDate';
  20. /* Search. */
  21. global $lang;
  22. $config->demandpool->search['module'] = 'demandpool';
  23. $config->demandpool->search['fields']['id'] = $lang->demandpool->id;
  24. $config->demandpool->search['fields']['name'] = $lang->demandpool->name;
  25. $config->demandpool->search['fields']['owner'] = $lang->demandpool->owner;
  26. $config->demandpool->search['fields']['status'] = $lang->demandpool->status;
  27. $config->demandpool->search['fields']['reviewer'] = $lang->demandpool->reviewer;
  28. $config->demandpool->search['fields']['createdBy'] = $lang->demandpool->createdBy;
  29. $config->demandpool->search['fields']['createdDate'] = $lang->demandpool->createdDate;
  30. $config->demandpool->search['fields']['desc'] = $lang->demandpool->desc;
  31. $config->demandpool->search['params']['id'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  32. $config->demandpool->search['params']['name'] = array('operator' => 'include', 'control' => 'input', 'values' => '');
  33. $config->demandpool->search['params']['status'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->demandpool->statusList);
  34. $config->demandpool->search['params']['owner'] = array('operator' => '=', 'control' => 'select', 'values' => 'users');
  35. $config->demandpool->search['params']['reviewer'] = array('operator' => 'include', 'control' => 'select', 'values' => 'users');
  36. $config->demandpool->search['params']['createdBy'] = array('operator' => '=', 'control' => 'select', 'values' => 'users');
  37. $config->demandpool->search['params']['createdDate'] = array('operator' => '=', 'control' => 'input', 'values' => '', 'class' => 'date');
  38. $config->demandpool->search['params']['desc'] = array('operator' => 'include', 'control' => 'input', 'values' => '');