Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
a6b22ba2
Commit
a6b22ba2
authored
Feb 26, 2017
by
Carsten Rose
Browse files
Index.rst: update STORE_VAR doc.
Link.php: add some doc.
parent
e235dd12
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/UsersManual/Index.rst
View file @
a6b22ba2
...
...
@@ -429,9 +429,9 @@ Store: *VARS* - V
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| slaveId | see *FormElement* `action` |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| filename | Original filename of an uploaded file
via an 'upload'-FormElement.
|
| filename | Original filename of an uploaded file via an 'upload'-FormElement.
Valid only during processing of the current 'upload'-formElement.
|
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| fileDestinaton | Destination (path & filename) for an uploaded file. Defined in an 'upload'-FormElement.parameter.
|
| fileDestinaton | Destination (path & filename) for an uploaded file. Defined in an 'upload'-FormElement.parameter.
Valid: same as 'filename'.
|
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
...
...
@@ -1076,9 +1076,11 @@ Type: datetime
Type: extra
^^^^^^^^^^^
* Element is not shown in the browser.
* The element can be used to define / precalculate values for a column, which do not already exist as a native *FormElement*.
* The element is build /computed on form load.
* The element is build / computed on form load and saved alongside with the SIP parameter of the current form.
* Access the value without specifying any store (default store priority is sufficient).
Type: text
^^^^^^^^^^
...
...
extension/qfq/qfq/report/Link.php
View file @
a6b22ba2
...
...
@@ -382,13 +382,14 @@ class Link {
}
/**
* @param $str
* @param
string
$str
* @param array $tokenGiven
* @return array
* @throws UserReportException
*/
private
function
fillParameter
(
$str
,
array
&
$tokenGiven
)
{
// define all possible vars: no more isset()
$vars
=
$this
->
initVars
();
$flagArray
=
array
();
...
...
@@ -398,6 +399,7 @@ class Link {
// Parse all parameter, fill variables
foreach
(
$param
as
$item
)
{
// Skip empty entries
if
(
$item
===
''
)
{
continue
;
}
...
...
@@ -407,6 +409,7 @@ class Link {
$key
=
isset
(
$arr
[
0
])
?
$arr
[
0
]
:
''
;
$value
=
isset
(
$arr
[
1
])
?
$arr
[
1
]
:
''
;
// Bookkeeping defined parameter.
if
(
isset
(
$tokenGiven
[
$key
]))
{
throw
new
UserReportException
(
"Multiple definitions for key '
$key
'"
,
ERROR_MULTIPLE_DEFINITION
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment