Commit 5605ee52 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Documentation/AdministratorManual/index.rst: New JS file to include: EventEmitter.min.js

AbstractBuildForm.php, QuickFormQuery.php: typos fixed, unused code commented
parent 1f5e4438
......@@ -50,7 +50,8 @@ Setup
file1 = typo3conf/ext/qfq/Resources/Public/JavaScript/jquery.min.js
file2 = typo3conf/ext/qfq/Resources/Public/JavaScript/bootstrap.min.js
file3 = typo3conf/ext/qfq/Resources/Public/JavaScript/jqx-all.js
file4 = typo3conf/ext/qfq/Resources/Public/JavaScript/qfq-min.js
file4 = typo3conf/ext/qfq/Resources/Public/JavaScript/EventEmitter.min.js
file5 = typo3conf/ext/qfq/Resources/Public/JavaScript/qfq.min.js
}
FormEditor
......
......@@ -110,7 +110,7 @@ abstract class AbstractBuildForm {
abstract public function fillWrap();
/**
* Builds complete form. Depending of Formspecification, the layout will be 'plain' / 'table' / 'bootstrap'.
* Builds complete form. Depending of form specification, the layout will be 'plain' / 'table' / 'bootstrap'.
*
* @param $mode
* @return string|array $mode=LOAD_FORM: The whole form as HTML, $mode=FORM_UPDATE: array of all formElement.dynamicUpdate-yes values/states
......@@ -338,8 +338,8 @@ abstract class AbstractBuildForm {
// Render pure element
$elementHtml = $this->$buildElementFunctionName($formElement, $htmlFormElementId, $value, $jsonElement);
$fake0 = $fe['dynamicUpdate'];
$fake1 = $formElement['dynamicUpdate'];
// $fake0 = $fe['dynamicUpdate'];
// $fake1 = $formElement['dynamicUpdate'];
// container elements do not have dynamicUpdate='yes'. Instead they deliver nested elements.
if ($formElement['class'] == 'container') {
......
......@@ -173,9 +173,13 @@ class QuickFormQuery {
}
/**
* Process form. There
* Process form.
* $mode=FORM_LOAD: The whole form will be rendered as HTML Code, including the values of all form elements
* $mode=FORM_UPDATE: States and values of all form elements will be returned as JSON.
* $mode=FORM_SAVE: The submitted form will be saved. Return Failure or Success as JSON.
*
* @return string
* @param $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
* @return array|string
* @throws CodeException
* @throws UserFormException
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment