form.php 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $config->reporttemplate->form = new stdclass();
  3. $config->reporttemplate->form->addCategory['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  4. $config->reporttemplate->form->addCategory['root'] = array('type' => 'int', 'required' => true, 'default' => 0);
  5. $config->reporttemplate->form->editCategory['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  6. $config->reporttemplate->form->editCategory['root'] = array('type' => 'int', 'required' => true, 'default' => 0);
  7. $config->reporttemplate->form->create = array();
  8. $config->reporttemplate->form->create['lib'] = array('type' => 'int', 'required' => true, 'default' => 0);
  9. $config->reporttemplate->form->create['module'] = array('type' => 'int', 'required' => true, 'default' => 0);
  10. $config->reporttemplate->form->create['objects'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  11. $config->reporttemplate->form->create['title'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  12. $config->reporttemplate->form->create['templateDesc'] = array('type' => 'string', 'required' => false, 'default' => '');
  13. $config->reporttemplate->form->create['acl'] = array('type' => 'string', 'required' => false, 'default' => 'open');
  14. $config->reporttemplate->form->create['groups'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  15. $config->reporttemplate->form->create['users'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  16. $config->reporttemplate->form->create['contentType'] = array('type' => 'string', 'required' => false, 'default' => 'doc');
  17. $config->reporttemplate->form->create['type'] = array('type' => 'string', 'required' => false, 'default' => 'text');
  18. $config->reporttemplate->form->create['status'] = array('type' => 'string', 'required' => false, 'default' => 'draft');
  19. $config->reporttemplate->form->create['parent'] = array('type' => 'int', 'required' => false, 'default' => 0);
  20. $config->reporttemplate->form->create['content'] = array('type' => 'string', 'required' => false, 'default' => '', 'control' => 'editor', 'skipRequired' => true);
  21. $config->reporttemplate->form->create['rawContent'] = array('type' => 'string', 'required' => false, 'default' => '', 'skipRequired' => true, 'specialchars' => 'no');
  22. $config->reporttemplate->form->create['templateType'] = array('type' => 'string', 'required' => false, 'default' => 'reportTemplate');
  23. $config->reporttemplate->form->ajaxSetBasic = array();
  24. $config->reporttemplate->form->ajaxSetBasic['lib'] = array('type' => 'int', 'required' => true, 'default' => 0);
  25. $config->reporttemplate->form->ajaxSetBasic['module'] = array('type' => 'int', 'required' => true, 'default' => 0);
  26. $config->reporttemplate->form->ajaxSetBasic['objects'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  27. $config->reporttemplate->form->ajaxSetBasic['templateDesc'] = array('type' => 'string', 'required' => false, 'default' => '');
  28. $config->reporttemplate->form->ajaxSetBasic['acl'] = array('type' => 'string', 'required' => false, 'default' => 'open');
  29. $config->reporttemplate->form->ajaxSetBasic['groups'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  30. $config->reporttemplate->form->ajaxSetBasic['users'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
  31. $config->reporttemplate->form->edit = array();
  32. $config->reporttemplate->form->edit['title'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim');
  33. $config->reporttemplate->form->edit['contentType'] = array('type' => 'string', 'required' => false, 'default' => 'doc');
  34. $config->reporttemplate->form->edit['type'] = array('type' => 'string', 'required' => false, 'default' => 'text');
  35. $config->reporttemplate->form->edit['status'] = array('type' => 'string', 'required' => false, 'default' => 'normal');
  36. $config->reporttemplate->form->edit['keywords'] = array('type' => 'string', 'required' => false, 'default' => '', 'filter' => 'trim');
  37. $config->reporttemplate->form->edit['parent'] = array('type' => 'int', 'required' => false, 'default' => 0);
  38. $config->reporttemplate->form->edit['content'] = array('type' => 'string', 'required' => false, 'default' => '', 'control' => 'editor', 'skipRequired' => true);
  39. $config->reporttemplate->form->edit['rawContent'] = array('type' => 'string', 'required' => false, 'default' => '', 'skipRequired' => true, 'specialchars' => 'no');