Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
23de95a4
Commit
23de95a4
authored
May 25, 2018
by
Carsten Rose
Browse files
Reformat phpdoc.
parent
c39578ad
Changes
16
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
23de95a4
...
...
@@ -86,8 +86,6 @@ abstract class AbstractBuildForm {
* @param array $feSpecAction
* @param array $feSpecNative
* @param array $db
* @throws CodeException
* @throws UserFormException
*/
public
function
__construct
(
array
$formSpec
,
array
$feSpecAction
,
array
$feSpecNative
,
array
$db
=
null
)
{
$this
->
formSpec
=
$formSpec
;
...
...
@@ -174,8 +172,6 @@ abstract class AbstractBuildForm {
* @param array $latestFeSpecNative
* @return array|string $mode=LOAD_FORM: The whole form as HTML, $mode=FORM_UPDATE: array of all
* formElement.dynamicUpdate-yes values/states
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public
function
process
(
$mode
,
$htmlElementNameIdZero
=
false
,
$latestFeSpecNative
=
array
())
{
...
...
@@ -251,9 +247,6 @@ abstract class AbstractBuildForm {
*
* @param string $mode
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public
function
head
(
$mode
=
FORM_LOAD
)
{
$html
=
''
;
...
...
@@ -283,8 +276,6 @@ abstract class AbstractBuildForm {
*
* @return string String: <a href="?pageId&sip=....">Edit</a> <small>[sip:..., r:..., urlparam:...,
* ...]</small>
* @throws CodeException
* @throws UserFormException
*/
public
function
createFormEditorUrl
(
$form
,
$recordId
,
array
$param
=
array
())
{
...
...
@@ -330,8 +321,6 @@ abstract class AbstractBuildForm {
* Returns '<form ...>'-tag with various attributes.
*
* @return string
* @throws CodeException
* @throws DbException
*/
public
function
getFormTag
()
{
$md5
=
''
;
...
...
@@ -349,8 +338,6 @@ abstract class AbstractBuildForm {
* Build MD5 from the current record. Return HTML Input element.
*
* @return string
* @throws \qfq\CodeException
* @throws \qfq\DbException
*/
public
function
buildInputRecordHashMd5
()
{
...
...
@@ -370,8 +357,6 @@ abstract class AbstractBuildForm {
* @param $recordId
*
* @return string
* @throws \qfq\CodeException
* @throws \qfq\DbException
*/
public
function
buildRecordHashMd5
(
$tableName
,
$recordId
)
{
$record
=
array
();
...
...
@@ -387,7 +372,6 @@ abstract class AbstractBuildForm {
* Create HTML Input vars to detect bot automatic filling of forms.
*
* @return string
* @throws CodeException
*/
public
function
getHoneypotVars
()
{
$html
=
''
;
...
...
@@ -412,8 +396,6 @@ abstract class AbstractBuildForm {
* Build an assoc array with standard form attributes.
*
* @return array
* @throws CodeException
* @throws DbException
*/
public
function
getFormTagAttributes
()
{
...
...
@@ -460,8 +442,6 @@ abstract class AbstractBuildForm {
* See: https://www.w3.org/wiki/HTML/Elements/form#HTML_Attributes
*
* @return string
* @throws CodeException
* @throws DbException
*/
public
function
getEncType
()
{
...
...
@@ -477,8 +457,6 @@ abstract class AbstractBuildForm {
* @param array|string $value
*
* @return array|string
* @throws CodeException
* @throws UserFormException
*/
private
function
processReportSyntax
(
$value
)
{
...
...
@@ -524,9 +502,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws DbException
* @throws \qfq\UserFormException
*/
public
function
elements
(
$recordId
,
$filter
=
FORM_ELEMENTS_NATIVE
,
$feIdContainer
=
0
,
array
&
$json
,
$modeCollectFe
=
FLAG_DYNAMIC_UPDATE
,
$htmlElementNameIdZero
=
false
,
...
...
@@ -697,8 +672,6 @@ abstract class AbstractBuildForm {
* @param array $formElement
*
* @return array
* @throws CodeException
* @throws UserFormException
*/
private
function
prepareFillStoreFireLdap
(
array
$formElement
)
{
...
...
@@ -793,8 +766,7 @@ abstract class AbstractBuildForm {
* Copy a subset of current STORE_TYPO3 variables to SIP. Set a hidden form field to submit the assigned SIP to
* save/update.
*
* @throws CodeException
* @throws UserFormException
* @return string
*/
private
function
prepareT3VarsForSave
()
{
...
...
@@ -830,8 +802,6 @@ abstract class AbstractBuildForm {
* Get all elements from STORE_ADDITIONAL_FORM_ELEMENTS and return them as a string.
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
private
function
buildAdditionalFormElements
()
{
...
...
@@ -846,8 +816,6 @@ abstract class AbstractBuildForm {
* @param array $json
*
* @return string <input type='hidden' name='s' value='<sip>'>
* @throws CodeException
* @throws \qfq\UserFormException
*/
public
function
buildHiddenSip
(
array
&
$json
)
{
...
...
@@ -878,8 +846,6 @@ abstract class AbstractBuildForm {
* @param array $formElement
*
* @return array
* @throws CodeException
* @throws UserFormException
*/
private
function
getFormElementForJson
(
$htmlFormElementName
,
$value
,
array
$formElement
)
{
...
...
@@ -955,7 +921,6 @@ abstract class AbstractBuildForm {
* @param array $feMode
*
* @return array
* @throws UserFormException
*/
private
function
getJsonFeMode
(
$feMode
)
{
...
...
@@ -1005,7 +970,6 @@ abstract class AbstractBuildForm {
* @param string $addClass
*
* @return string
* @throws CodeException
*/
public
function
buildLabel
(
$htmlFormElementName
,
$label
,
$addClass
=
''
)
{
$attributes
=
Support
::
doAttribute
(
'for'
,
$htmlFormElementName
);
...
...
@@ -1021,8 +985,6 @@ abstract class AbstractBuildForm {
*
* @param $toolTipNew
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
deriveNewRecordUrlFromExistingSip
(
&
$toolTipNew
)
{
...
...
@@ -1086,8 +1048,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string complete rendered HTML input element.
* @throws CodeException
* @throws UserFormException
*/
public
function
buildInput
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$textarea
=
''
;
...
...
@@ -1232,7 +1192,6 @@ abstract class AbstractBuildForm {
* @param array $formElement
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
private
function
typeAheadBuildParam
(
array
&
$formElement
)
{
...
...
@@ -1338,7 +1297,6 @@ abstract class AbstractBuildForm {
* @param bool $flagOmitEmpty
*
* @return string
* @throws CodeException
*/
private
function
getAttributeList
(
array
$formElement
,
array
$attributeList
,
$flagOmitEmpty
=
true
)
{
$attribute
=
''
;
...
...
@@ -1357,7 +1315,6 @@ abstract class AbstractBuildForm {
*
* @param bool $cssDisable
* @return string
* @throws CodeException
* @throws UserFormException
*/
private
function
getAttributeFeMode
(
$feMode
,
$cssDisable
=
true
)
{
...
...
@@ -1414,8 +1371,7 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE*
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
* @throws UserFormException
*/
public
function
buildCheckbox
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$itemKey
=
array
();
...
...
@@ -1470,8 +1426,7 @@ abstract class AbstractBuildForm {
* @param array $itemKey
* @param array $itemValue
*
* @throws CodeException
* @throws \qfq\UserFormException
* @throws UserFormException
*/
public
function
getKeyValueListFromSqlEnumSpec
(
array
$formElement
,
array
&
$itemKey
,
array
&
$itemValue
)
{
$fieldType
=
''
;
...
...
@@ -1543,7 +1498,6 @@ abstract class AbstractBuildForm {
* @param string $fieldType
*
* @return array
* @throws CodeException
* @throws UserFormException
*/
private
function
getItemsForEnumOrSet
(
$column
,
&
$fieldType
)
{
...
...
@@ -1589,7 +1543,6 @@ abstract class AbstractBuildForm {
* @param array $itemKey
* @param array $formElement
*
* @throws CodeException
* @throws UserFormException
*/
private
function
prepareCheckboxCheckedUncheckedValue
(
array
$itemKey
,
array
&
$formElement
)
{
...
...
@@ -1630,8 +1583,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
buildCheckboxSingle
(
array
$formElement
,
$htmlFormElementName
,
$attribute
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -1665,8 +1616,6 @@ abstract class AbstractBuildForm {
* @param array $json
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
constructCheckboxSingleButton
(
array
$formElement
,
$htmlFormElementName
,
$attribute
,
$value
,
array
&
$json
)
{
$html
=
''
;
...
...
@@ -1725,8 +1674,6 @@ abstract class AbstractBuildForm {
* @param array $json
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
constructCheckboxSinglePlain
(
array
$formElement
,
$htmlFormElementName
,
$attribute
,
$value
,
array
&
$json
)
{
$html
=
''
;
...
...
@@ -1775,8 +1722,6 @@ abstract class AbstractBuildForm {
* @param array $itemValue
* @param array $json
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
buildCheckboxMulti
(
array
$formElement
,
$htmlFormElementName
,
$attributeBase
,
$value
,
array
$itemKey
,
array
$itemValue
,
array
&
$json
)
{
...
...
@@ -1797,8 +1742,6 @@ abstract class AbstractBuildForm {
* @param string $htmlFormElementName
* @param string $htmlHidden
*
* @throws CodeException
* @throws UserFormException
*/
private
function
fillStoreAdditionalFormElementsCheckboxHidden
(
array
$formElement
,
$htmlFormElementName
,
$htmlHidden
)
{
...
...
@@ -1828,8 +1771,6 @@ abstract class AbstractBuildForm {
* @param array $json
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
constructCheckboxMultiButton
(
array
$formElement
,
$htmlFormElementName
,
$attributeBase
,
$value
,
array
$itemKey
,
array
$itemValue
,
array
&
$json
)
{
$json
=
array
();
...
...
@@ -1901,8 +1842,6 @@ abstract class AbstractBuildForm {
* @param array $json
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
constructCheckboxMultiPlain
(
array
$formElement
,
$htmlFormElementName
,
$attributeBase
,
$value
,
array
$itemKey
,
array
$itemValue
,
array
&
$json
)
{
$json
=
array
();
...
...
@@ -1991,14 +1930,14 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
public
function
buildExtra
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
if
(
$mode
===
FORM_LOAD
)
{
$this
->
store
->
setVar
(
$formElement
[
FE_NAME
],
$value
,
STORE_SIP
,
false
);
}
return
;
}
/**
...
...
@@ -2015,8 +1954,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
public
function
buildRadio
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -2063,8 +2000,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
private
function
constructRadioButton
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$itemKey
=
array
();
...
...
@@ -2146,8 +2081,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
private
function
constructRadioPlain
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$attributeBase
=
''
;
...
...
@@ -2236,8 +2169,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return mixed
* @throws CodeException
* @throws \qfq\UserFormException
*/
public
function
buildSelect
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$itemKey
=
array
();
...
...
@@ -2311,7 +2242,6 @@ abstract class AbstractBuildForm {
* @param array $control Array with <th> column names / format.
*
* @return string
* @throws UserFormException
*/
private
function
subrecordHead
(
$linkNew
,
$flagDelete
,
array
$firstRow
,
array
&
$control
)
{
...
...
@@ -2344,8 +2274,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
*/
public
function
buildSubrecord
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$rcText
=
false
;
...
...
@@ -2503,8 +2431,6 @@ abstract class AbstractBuildForm {
* @param $toolTip
* @param array $currentRow
* @return string
* @throws CodeException
* @throws UserFormException
*/
private
function
createFormLink
(
array
$formElement
,
$targetRecordId
,
array
$record
,
$symbol
,
$toolTip
,
$currentRow
=
array
())
{
...
...
@@ -2572,8 +2498,6 @@ abstract class AbstractBuildForm {
* @param string $formName
*
* @return string tableName for $formName
* @throws CodeException
* @throws DbException
*/
private
function
getFormTable
(
$formName
)
{
$row
=
$this
->
dbArray
[
$this
->
dbIndexQfq
]
->
sql
(
"SELECT "
.
F_TABLE_NAME
.
" FROM Form AS f WHERE f.name = ?"
,
ROW_EXPECT_0_1
,
[
$formName
]);
...
...
@@ -2604,7 +2528,6 @@ abstract class AbstractBuildForm {
* @param array $titleRaw
*
* @return array
* @throws UserFormException
*/
private
function
getSubrecordColumnControl
(
array
$titleRaw
)
{
$control
=
array
();
...
...
@@ -2682,9 +2605,6 @@ abstract class AbstractBuildForm {
* @param string $columnValue
*
* @return string
* @throws CodeException
* @throws UserFormException
* @throws UserReportException
*/
private
function
renderCell
(
array
$control
,
$columnName
,
$columnValue
)
{
$link
=
null
;
...
...
@@ -2747,8 +2667,6 @@ abstract class AbstractBuildForm {
* parameters.
*
* @return string String: "API_DIR/delete.php?sip=...."
* @throws CodeException
* @throws UserFormException
*/
public
function
createDeleteUrl
(
$formName
,
$recordId
,
$mode
=
RETURN_URL
)
{
...
...
@@ -2776,10 +2694,7 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
buildFile
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$attribute
=
''
;
...
...
@@ -2896,8 +2811,7 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
* @throws UserFormException
*/
public
function
buildAnnotate
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -2949,8 +2863,7 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws \qfq\UserFormException
* @throws UserFormException
*/
public
function
buildImageCut
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -3017,8 +2930,6 @@ abstract class AbstractBuildForm {
/**
* @param string $pathFileName
* @return string SIP encoded URL
* @throws CodeException
* @throws UserFormException
*/
private
function
fileToSipUrl
(
$pathFileName
)
{
$param
[
DOWNLOAD_MODE
]
=
DOWNLOAD_MODE_FILE
;
...
...
@@ -3042,7 +2953,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
buildDateTime
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -3155,8 +3065,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
buildDateJQW
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$arrMinMax
=
null
;
...
...
@@ -3239,8 +3147,6 @@ abstract class AbstractBuildForm {
* @param string $mode
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
public
function
buildEditor
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$attribute
=
''
;
...
...
@@ -3391,8 +3297,6 @@ abstract class AbstractBuildForm {
*
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
* @return mixed
* @throws CodeException
* @throws UserFormException
*/
public
function
buildNote
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
...
...
@@ -3427,9 +3331,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return mixed
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public
function
buildFieldset
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$attribute
=
''
;
...
...
@@ -3496,9 +3397,6 @@ abstract class AbstractBuildForm {
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
*
* @return mixed
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public
function
buildTemplateGroup
(
array
$formElement
,
$htmlFormElementName
,
$value
,
array
&
$json
,
$mode
=
FORM_LOAD
)
{
$attribute
=
''
;
...
...
@@ -3611,9 +3509,6 @@ EOT;
* @param array $json
*
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private
function
templateGroupCollectFilledElements
(
$max
,
$htmlDelete
,
array
&
$json
)
{
...
...
@@ -3696,7 +3591,6 @@ EOT;
* Additional the maximum count of all select rows will be determined and returned.
*
* @return int max number of records in FormElement[FE_VALUE] over all FormElements.
* @throws UserFormException
*/
private
function
templateGroupDoValue
()
{
...
...
extension/qfq/qfq/BodytextParser.php
View file @
23de95a4
...
...
@@ -42,7 +42,7 @@ class BodytextParser {
$bodytext
=
Support
::
decryptDoubleCurlyBraces
(
$bodytext
);
if
(
strpos
(
$bodytext
,
NESTING_TOKEN_OPEN
)
!==
false
)
{
throw
new
\
qfq\
UserFormException
(
"Missing close delimiter:
$bodytext
"
,
ERROR_MISSING_CLOSE_DELIMITER
);
throw
new
UserFormException
(
"Missing close delimiter:
$bodytext
"
,
ERROR_MISSING_CLOSE_DELIMITER
);
}
return
$bodytext
;
...
...
@@ -275,7 +275,7 @@ class BodytextParser {
if
(
$posMatchOpen
===
false
)
{
$result
=
$this
->
decryptNestingDelimeter
(
$result
,
$nestingOpen
,
$nestingClose
);
throw
new
\
qfq\
UserFormException
(
"Missing open delimiter:
$result
"
,
ERROR_MISSING_OPEN_DELIMITER
);
throw
new
UserFormException
(
"Missing open delimiter:
$result
"
,
ERROR_MISSING_OPEN_DELIMITER
);
}
$pre
=
substr
(
$result
,
0
,
$posMatchOpen
);
...
...
extension/qfq/qfq/BuildFormBootstrap.php
View file @
23de95a4
...
...
@@ -240,6 +240,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
*
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private
function
buildButtons
()
{
...
...
@@ -751,9 +752,9 @@ EOF;
/**
* Builds a fieldset
*
* @param $formElement
* @param
array
$formElement
* @param $elementHtml
* @return
* @return
mixed
*/
public
function
buildRowFieldset
(
array
$formElement
,
$elementHtml
)
{
$html
=
$elementHtml
;
...
...
extension/qfq/qfq/Evaluate.php
View file @
23de95a4
...
...
@@ -55,6 +55,7 @@ class Evaluate {
* @param string $startDelimiter
* @param string $endDelimiter
* @throws CodeException
* @throws UserFormException
*/
public
function
__construct
(
Store
$store
,
Database
$db
,
$startDelimiter
=
'{{'
,
$endDelimiter
=
'}}'
)
{
$this
->
store
=
$store
;
...
...
@@ -78,7 +79,10 @@ class Evaluate {
* @param array $debugStack
*
* @return array
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
parseArray
(
$tokenArray
,
array
$skip
=
array
(),
&
$debugStack
=
array
())
{
$arr
=
array
();
...
...
@@ -139,7 +143,7 @@ class Evaluate {
$posMatchOpen
=
strrpos
(
substr
(
$result
,
0
,
$posFirstClose
),
$this
->
startDelimiter
);
if
(
$posMatchOpen
===
false
)
{
throw
new
\
qfq\
UserFormException
(
"Missing open delimiter:
$result
"
,
ERROR_MISSING_OPEN_DELIMITER
);
throw
new
UserFormException
(
"Missing open delimiter:
$result
"
,
ERROR_MISSING_OPEN_DELIMITER
);
}
$pre
=
substr
(
$result
,
0
,
$posMatchOpen
);
...
...
extension/qfq/qfq/QuickFormQuery.php
View file @
23de95a4
...
...
@@ -122,7 +122,9 @@ class QuickFormQuery {
* @param bool $phpUnit
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
__construct
(
array
$t3data
=
array
(),
$phpUnit
=
false
)
{
...
...
@@ -218,6 +220,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
process
()
{
$html
=
''
;
...
...
@@ -276,6 +279,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private
function
doForm
(
$formMode
)
{
$data
=
''
;
...
...
@@ -502,7 +506,10 @@ class QuickFormQuery {
*
* @return bool TRUE if F_FORWARD_MODE = 'url..', else FALSE
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private
function
setForwardModePage
()
{
...
...
@@ -560,6 +567,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private
function
pasteClipboard
(
$formId
,
FormAction
$formAction
)
{
...
...
@@ -645,6 +653,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private
function
loadFormSpecification
(
$mode
,
$recordId
,
&
$foundInStore
=
''
)
{
...
...
@@ -879,7 +888,9 @@ class QuickFormQuery {
*
* @return bool|string Formname (Form.name) or FALSE (if no formname found)
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
getFormName
(
$mode
,
&
$foundInStore
=
''
)
{
$dummy
=
array
();
...
...
@@ -1195,6 +1206,10 @@ class QuickFormQuery {
* Process the SQL Queries from bodytext. Return the output.
*