|
<?php
|
|
abstract class QForm extends QFormBase {
|
|
///////////////////////////
|
|
// Form Preferences
|
|
///////////////////////////
|
|
|
|
/**
|
|
* If you wish to encrypt the resulting formstate data to be put on the form (via
|
|
* QCryptography), please specify a key to use. The default cipher and encrypt mode
|
|
* on QCryptography will be used, and because the resulting encrypted data will be
|
|
* sent via HTTP POST, it will be Base64 encoded.
|
|
*
|
|
* @var string EncryptionKey the key to use, or NULL if no encryption is required
|
|
*/
|
|
// public static $EncryptionKey = 'th3s3cr3tk3y6tgilsruhv';
|
|
public static $EncryptionKey = null;
|
|
|
|
/**
|
|
* The QFormStateHandler to use to handle the actual serialized form. By default,
|
|
* QFormStateHandler will be used (which simply outputs the entire serialized
|
|
* form data stream to the form), but file- and session- based, or any custom db-
|
|
* based FormState handling can be used as well.
|
|
*
|
|
* @var string FormStateHandler the classname of the FormState handler to use
|
|
*/
|
|
public static $FormStateHandler = 'QFileFormStateHandler';
|
|
|
|
/**
|
|
* These are the list of core QForm JavaScript files, or JavaScript files needed by
|
|
* a QControl, which QForm should IGNORE trying to load during a RenderBegin() or RenderAjax() call.
|
|
*
|
|
* In production or as a performance tweak, you may want to use the compressed "_qc_packed.js"
|
|
* library (which is a compressed, single file version of ALL the qcodo .js files that is in _core).
|
|
*
|
|
* If you want to do this, MAKE SURE you FIRST MANUALLY do a <script> inclusion of "/assets/js/_core/_qc_packed.js" in
|
|
* your HTML. Then, you can specify that QForm "ignore" all the other qcodo _core javascripts.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $strIgnoreJavaScriptFileArray = array();
|
|
/* protected $strIgnoreJavaScriptFileArray = array(
|
|
'_core/calendar.js',
|
|
'_core/calendar_popup.js',
|
|
'_core/control.js',
|
|
'_core/control_dialog.js',
|
|
'_core/control_handle.js',
|
|
'_core/control_move.js',
|
|
'_core/control_resize.js',
|
|
'_core/control_rollover.js',
|
|
'_core/date_time_picker.js',
|
|
'_core/event.js',
|
|
'_core/listbox.js',
|
|
'_core/logger.js',
|
|
'_core/post.js',
|
|
'_core/qcodo.js',
|
|
'_core/treenav.js'); */
|
|
|
|
/**
|
|
* This should be very rarely used.
|
|
*
|
|
* This mechanism acts similarly to the strIgnoreJavascriptFileArray, except it applies to StyleSheets.
|
|
* However, any QControl that specifies a StyleSheet file to include is MEANT to have that property be modified / customized.
|
|
*
|
|
* Therefore, there should be little to no need for this attribute. However, it is here anyway, just in case.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $strIgnoreStyleSheetFileArray = array();
|
|
// protected $strIgnoreStyleSheetFileArray = array('datagrid.css', 'calendar.css', 'textbox.css', 'listbox.css');
|
|
}
|
|
?>
|