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
d68ce338
Commit
d68ce338
authored
Jan 24, 2016
by
Carsten Rose
Browse files
FormBuildPlain: Variables renamed to be more clear.
parent
595a1d2a
Changes
1
Show whitespace changes
Inline
Side-by-side
qfq/FormBuildPlain.php
View file @
d68ce338
...
...
@@ -714,25 +714,22 @@ class FormBuildPlain {
private
function
getSubrecordColumnControl
(
$titleRaw
)
{
$control
=
array
();
for
(
$ii
=
0
;
$ii
<
count
(
$titleRaw
);
$ii
++
)
{
// foreach ($titleRaw AS $col) {
$col
=
$titleRaw
[
$ii
];
foreach
(
$titleRaw
AS
$col
)
{
$control
[
'width'
][
$col
]
=
SUBRECORD_COLUMN_WIDTH
;
// a) 'City@width=40', b) 'Status@icon', c) 'Mailto@width=80@nostrip'
$arr
=
qfq\helper\KeyValueStringParser
::
parse
(
$
titleRaw
[
$ii
]
,
'='
,
'@'
,
IF_VALUE_EMPTY_COPY_KEY
);
foreach
(
$arr
as
$
key
=>
$value
)
{
switch
(
$
key
)
{
$arr
=
qfq\helper\KeyValueStringParser
::
parse
(
$
col
,
'='
,
'@'
,
IF_VALUE_EMPTY_COPY_KEY
);
foreach
(
$arr
as
$
attribute
=>
$value
)
{
switch
(
$
attribute
)
{
case
'width'
:
case
'nostrip'
:
case
'icon'
:
break
;
default
:
$
key
=
'title'
;
$
attribute
=
'title'
;
break
;
}
$control
[
$
key
][
$col
]
=
$value
;
$control
[
$
attribute
][
$col
]
=
$value
;
}
}
return
$control
;
...
...
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