config.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. $config->review = new stdclass();
  3. $config->review->editor = new stdclass();
  4. $config->review->editor->create = array('id' => 'comment', 'tools' => 'simpleTools');
  5. $config->review->editor->edit = array('id' => 'comment', 'tools' => 'simpleTools');
  6. $config->review->editor->submit = array('id' => 'comment', 'tools' => 'simpleTools');
  7. $config->review->editor->toaudit = array('id' => 'comment', 'tools' => 'simpleTools');
  8. $config->review->editor->assess = array('id' => 'opinion', 'tools' => 'simpleTools');
  9. $config->review->editor->audit = array('id' => 'opinion', 'tools' => 'simpleTools');
  10. $config->review->create = new stdclass();
  11. $config->review->create->requiredFields = 'type';
  12. $config->review->edit = new stdclass();
  13. $config->review->edit->requiredFields = 'type';
  14. $config->review->assess = new stdclass();
  15. $config->review->assess->requiredFields = '';
  16. global $lang;
  17. $config->review->search['module'] = 'review';
  18. $config->review->search['fields']['title'] = $lang->review->title;
  19. $config->review->search['fields']['type'] = $lang->review->type;
  20. $config->review->search['fields']['object'] = $lang->review->object;
  21. $config->review->search['fields']['status'] = $lang->review->status;
  22. $config->review->search['fields']['reviewedBy'] = $lang->review->reviewedBy;
  23. $config->review->search['fields']['createdBy'] = $lang->review->createdBy;
  24. $config->review->search['fields']['createdDate'] = $lang->review->createdDate;
  25. $config->review->search['fields']['version'] = $lang->review->version;
  26. $config->review->search['fields']['deadline'] = $lang->review->deadline;
  27. $config->review->search['fields']['lastReviewedDate'] = $lang->review->lastReviewedDate;
  28. $config->review->search['fields']['id'] = $lang->review->id;
  29. $config->review->search['params']['title'] = array('operator' => 'include', 'control' => 'input', 'values' => '');
  30. $config->review->search['params']['type'] = array('operator' => 'include', 'control' => 'select', 'values' => '');
  31. $config->review->search['params']['object'] = array('operator' => 'include', 'control' => 'select', 'values' => '');
  32. $config->review->search['params']['status'] = array('operator' => 'include', 'control' => 'select', 'values' => arrayUnion(array('' => ''), $lang->review->statusList));
  33. $config->review->search['params']['reviewedBy'] = array('operator' => 'include', 'control' => 'select', 'values' => 'users');
  34. $config->review->search['params']['createdBy'] = array('operator' => 'include', 'control' => 'select', 'values' => 'users');
  35. $config->review->search['params']['createdDate'] = array('operator' => '=', 'control' => 'input', 'values' => '', 'class' => 'date');
  36. $config->review->search['params']['version'] = array('operator' => 'include', 'control' => 'input', 'values' => '');
  37. $config->review->search['params']['deadline'] = array('operator' => '=', 'control' => 'input', 'values' => '', 'class' => 'date');
  38. $config->review->search['params']['lastReviewedDate'] = array('operator' => '=', 'control' => 'input', 'values' => '', 'class' => 'date');
  39. $config->review->actions = new stdclass();
  40. $config->review->actions->view = array();
  41. $config->review->actions->view['mainActions'] = array('submit' => 'submit', 'recall' => 'recall', 'assess' => 'assess', 'progress' => 'progress');
  42. $config->review->actions->view['suffixActions'] = array('edit');