Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
validatePrototypeNode example
$this
->
validateConcreteNode
(
$node
)
;
$node
->
setAddIfNotSet
(
$this
->addDefaults
)
;
foreach
(
$this
->children
as
$child
)
{
$child
->parent =
$node
;
$node
->
addChild
(
$child
->
getNode
(
)
)
;
}
}
else
{
$node
=
new
PrototypedArrayNode
(
$this
->name,
$this
->parent,
$this
->pathSeparator
)
;
$this
->
validatePrototypeNode
(
$node
)
;
if
(
null !==
$this
->key
)
{
$node
->
setKeyAttribute
(
$this
->key,
$this
->removeKeyItem
)
;
}
if
(
true ===
$this
->atLeastOne || false ===
$this
->allowEmptyValue
)
{
$node
->
setMinNumberOfElements
(
1
)
;
}
if
(
$this
->default
)
{
if
(
!\
is_array
(
$this
->defaultValue
)
)
{