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
012db4b1
Commit
012db4b1
authored
Feb 17, 2017
by
Carsten Rose
Browse files
Support.php: doAttribute() - Add feature to submit param arrays
parent
255c9705
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/helper/Support.php
View file @
012db4b1
...
...
@@ -88,11 +88,17 @@ class Support {
* Format's an attribute: $type=$value. If $flagOmitEmpty==true && $value=='': return ''.
*
* @param string $type
* @param string $value
* @param string
|array
$value
* @param bool $flagOmitEmpty
* @return string
*/
public
static
function
doAttribute
(
$type
,
$value
,
$flagOmitEmpty
=
true
,
$modeEscape
=
ESCAPE_WITH_BACKSLASH
)
{
// several attributes might be given as an array - concat to a string
if
(
is_array
(
$value
))
{
$value
=
implode
(
' '
,
$value
);
}
if
(
$flagOmitEmpty
&&
$value
===
""
)
{
return
''
;
}
...
...
@@ -572,6 +578,9 @@ class Support {
self
::
setIfNotSet
(
$formElement
,
FE_SHOW_ZERO
,
'0'
);
self
::
setIfNotSet
(
$formElement
,
FE_DATE_FORMAT
,
$store
->
getVar
(
SYSTEM_DATE_FORMAT
,
STORE_SYSTEM
));
self
::
setIfNotSet
(
$formElement
,
FE_HTML_BEFORE
);
self
::
setIfNotSet
(
$formElement
,
FE_HTML_AFTER
);
if
(
count
(
$formSpec
)
>
0
)
{
self
::
setIfNotSet
(
$formElement
,
F_BS_LABEL_COLUMNS
,
$formSpec
[
F_BS_LABEL_COLUMNS
],
''
);
self
::
setIfNotSet
(
$formElement
,
F_BS_INPUT_COLUMNS
,
$formSpec
[
F_BS_INPUT_COLUMNS
],
''
);
...
...
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