- 09 May, 2016 3 commits
-
-
Carsten Rose authored
FillStoreForm.php: Recode. Class Evaluate will be instantiated only once. collectMultiValues() recoded not to use arrays anymore, instead a string with the final values, seperated by comma, is returned.
-
Carsten Rose authored
CheckBox Multi: checkboxes are now builded with uniq html names. This is necessary for the client, to assign values correctly to multiple checkboxes during form update by JSON data. HelperFormElement.php: new prependFormElementIdCheckBoxMulti() FillStoreForm.php: new collectCheckboxMultiValue(), process() recoded to collect checkBoxMulti values to one element. AbstractBuildForm.php: checkBoxMulti elements: a) no longer contains an '[]' at the end, b) get individual names
-
Carsten Rose authored
Support.php: If FE_MODE_SQL is given, overwrite the static option. FillStoreForm.php: Evaluate loaded elements to get FE_MODE_SQL evaluated.
-
- 03 May, 2016 1 commit
-
-
Carsten Rose authored
Recode: fromelement.mode='readonly' new implemented on client, by using CSS attribute 'disabled'. The HTML atrribute 'readonly' is fine for pure 'input' elements, but does not work sufficient for 'select', 'checkbox', 'radio'. Also, the label (left of input) and note (right of input) are now grayed out if set to 'disable'. FillStoreForm.php, Save.php: strings replaced by constants. New central function getfeMode() used by getJsonFeMode() and getAttributeFeMode()
-
- 02 May, 2016 2 commits
-
-
Carsten Rose authored
Formelement.mode='lock': removed, cause it seems that there is no difference to 'readonly'. Inside the code, there is no difference UserManual/Index.rst: doc updated FillStoreForm.php, Save.php: same functionality like FE_MODE_READONLY - removed. formEditor.sql: definition updated
-
Carsten Rose authored
Support.php, FillStore.php, AbstractBuildFrom.php, BuildFormPlain.php, BuildFormTables.php, Constants.php, Save.php, BuildFormPlainTest.php
-
- 25 Apr, 2016 2 commits
-
-
Carsten Rose authored
FillStoreForm.php: added HelperFormElement::explodeParameterInArrayElements($feSpecNative);
-
Carsten Rose authored
AdministratorManual/index.rst, UsersManual/index.rst: Configuration & Documentation. Sanitize.php: code rewrote to use Support::dateTime2mysql(). Support.php: add dateTimeTegexp() FillStoreForm.php: use of Support::setFeDefaults($formElement). Format date/datetime/time values Store.php: redefined various functions to be 'static' AbstractBuildForm.php, Constants.php: added date/datetime/time to tables. Various new functions. Save.php: FE die nicht uebertragen wurden (typsicherweise weil leer) werden neu mit eimem leer String gesschrieben - sonst ist es nicht moeglich Eingaben wieder zu loeschen. formEditor.sql: Felder date/datetime/time neun implementiert.
-
- 18 Apr, 2016 4 commits
-
-
Carsten Rose authored
FillStoreForm.php: SIP Parameter without a corresponding FE have not been saved in the record: fixed
-
Carsten Rose authored
-
Carsten Rose authored
AbstractException.php: If exist, print Form And FormElement names. HelperFormElement.php, Logger.php, FillStoreForm.php, AbstractBuildForm.php: fomatting form element name. Support.php: add setIfNotSet()
-
Carsten Rose authored
Sanatize.php, FillStoreForm.php, Constants.php: Preparation to throw more detailed exception for misconfigured min|max values - code not enabled. Support.php: date format extended to accept yyyy-mm-dd too.
-
- 16 Apr, 2016 1 commit
-
-
Carsten Rose authored
formEditor.sql: Form and FormElement field 'name' is now 'required'
-
- 01 Apr, 2016 1 commit
-
-
Carsten Rose authored
-
- 24 Mar, 2016 2 commits
-
-
Carsten Rose authored
Refactored sanitize functionality: Form save, form update and client are now handled with the same regexp. Form save and update use the same code to sanatize. SANITIZE names are now equal in FormEditor and in Store. New class SANITIZE_ALL_MIN_MAX_DATE. OnArray.php: moved inputCheckPatternArray() to Sanatize. Sanatize.php: complete rewrote of sanitize(). Everything is regexp based now. FillStore.php: validateValue() removed, use of Sanitize::sanitize instead. Store.php: adjusted change of Sanitize:sanitize signature. AbstractBuildForm.php: defined class global variable $inputCheckPattern and initialize them during construct(). Variables, submitted by POST, are now correctly sanatized according their FormElement definition. getInputCheckPattern() adjusted to new/changed SANITIZE definitions. Constants.php: added SANTIZE_ALLOW_: MIN_MAX, MIN_MAX_DATE, EMAIL, PATTERN, SANITIZE_EXCEPTION, SANITIZE_EMPTY_STRING Save.php: use of Sanitize::sanitize instead of validateValue() formEditor.sql: order of FormElement.checkType changed to 'most used first'.
-
Carsten Rose authored
load.php: implemented FillStoreForm.php: implemented Store.php: phpunit test complains about 'store already filled'. Option set to explicitly allow rewrite. AbstractBuildForm.php: Added new mode 'FORM_UPDATE'. Elements additionaly create json code. 'data-load' attribute will be added to form elements, if 'dynamicUpdate=yes' elements(): added call by reference parameter $json, to return the generated json code. BodyTextParse.php: added 'r =' as a new 'start new line' indicator. This was necessary at least for phpunit tests to run. BuildFormBootstrap.php: buildPill() passes json data structure. BuildFormPlain, BuildFormTable.php: doSubrecords() passes json data structure. Constants.php: New FORM_UPDATE, SQL_FORM_ELEMENT_SIMPLE_ALL_CONTAINER, ERROR_FORM_NOT_FOUND, API_FORM_UPDATE Evaluate.php: Exception text enhanced. QuickFormQuery.php: FillStoreForm.php included. Automatic detection of FORM_LOAD and FORM_SAVE removed. Instead the mode are given explicitly. mode=FORM_UPDATE implemented. Save.php: added TODOs in code. formEditor.sql: reformat code. Add 'FormElement.dynamicUpdate'. 'FormElemente.checkType': 'number' replaced by 'digit'. Added 'alnumx', 'digit'. Form 'form', 'formElement': output of 'title' replaced by 'name' - outputting 'title' confuses the user (tries to show records which do fit to the formEditor) and might produce recursion in evaluation (did not understand why, but happens). FormEditor: implemented 'dynamicUpdate', escpecially the 'type' select list will be adjusted dynamically.
-