Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseStoreNodeList example
$element
[
'label'
]
= self::
parseTranslatableElement
(
$item
, 'label'
)
;
$element
[
'description'
]
= self::
parseTranslatableElement
(
$item
, 'description'
)
;
$element
[
'options'
]
=
[
]
;
if
(
$options
= self::
parseOptionsNodeList
(
$item
->
getElementsByTagName
(
'options'
)
)
)
{
$element
[
'options'
]
=
$options
;
}
if
(
$store
= self::
parseStoreNodeList
(
$item
->
getElementsByTagName
(
'store'
)
)
)
{
$element
[
'store'
]
=
$store
;
}
elseif
(
$item
->
getElementsByTagName
(
'store'
)
->length
)
{
$element
[
'store'
]
=
$item
->
getElementsByTagName
(
'store'
)
->
item
(
0
)
->nodeValue;
}
$elements
[
]
=
$element
;
}
return
$elements
;
}