A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.8 KiB

13 years ago
  1. <?php
  2. abstract class QForm extends QFormBase {
  3. ///////////////////////////
  4. // Form Preferences
  5. ///////////////////////////
  6. /**
  7. * If you wish to encrypt the resulting formstate data to be put on the form (via
  8. * QCryptography), please specify a key to use. The default cipher and encrypt mode
  9. * on QCryptography will be used, and because the resulting encrypted data will be
  10. * sent via HTTP POST, it will be Base64 encoded.
  11. *
  12. * @var string EncryptionKey the key to use, or NULL if no encryption is required
  13. */
  14. // public static $EncryptionKey = 'th3s3cr3tk3y6tgilsruhv';
  15. public static $EncryptionKey = null;
  16. /**
  17. * The QFormStateHandler to use to handle the actual serialized form. By default,
  18. * QFormStateHandler will be used (which simply outputs the entire serialized
  19. * form data stream to the form), but file- and session- based, or any custom db-
  20. * based FormState handling can be used as well.
  21. *
  22. * @var string FormStateHandler the classname of the FormState handler to use
  23. */
  24. public static $FormStateHandler = 'QFileFormStateHandler';
  25. /**
  26. * These are the list of core QForm JavaScript files, or JavaScript files needed by
  27. * a QControl, which QForm should IGNORE trying to load during a RenderBegin() or RenderAjax() call.
  28. *
  29. * In production or as a performance tweak, you may want to use the compressed "_qc_packed.js"
  30. * library (which is a compressed, single file version of ALL the qcodo .js files that is in _core).
  31. *
  32. * If you want to do this, MAKE SURE you FIRST MANUALLY do a <script> inclusion of "/assets/js/_core/_qc_packed.js" in
  33. * your HTML. Then, you can specify that QForm "ignore" all the other qcodo _core javascripts.
  34. *
  35. * @var array
  36. */
  37. protected $strIgnoreJavaScriptFileArray = array();
  38. /* protected $strIgnoreJavaScriptFileArray = array(
  39. '_core/calendar.js',
  40. '_core/calendar_popup.js',
  41. '_core/control.js',
  42. '_core/control_dialog.js',
  43. '_core/control_handle.js',
  44. '_core/control_move.js',
  45. '_core/control_resize.js',
  46. '_core/control_rollover.js',
  47. '_core/date_time_picker.js',
  48. '_core/event.js',
  49. '_core/listbox.js',
  50. '_core/logger.js',
  51. '_core/post.js',
  52. '_core/qcodo.js',
  53. '_core/treenav.js'); */
  54. /**
  55. * This should be very rarely used.
  56. *
  57. * This mechanism acts similarly to the strIgnoreJavascriptFileArray, except it applies to StyleSheets.
  58. * However, any QControl that specifies a StyleSheet file to include is MEANT to have that property be modified / customized.
  59. *
  60. * Therefore, there should be little to no need for this attribute. However, it is here anyway, just in case.
  61. *
  62. * @var array
  63. */
  64. protected $strIgnoreStyleSheetFileArray = array();
  65. // protected $strIgnoreStyleSheetFileArray = array('datagrid.css', 'calendar.css', 'textbox.css', 'listbox.css');
  66. }
  67. ?>