[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 522 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ArrayNodeDefinition:: (28 methods):
__construct()
setBuilder()
children()
prototype()
variablePrototype()
scalarPrototype()
booleanPrototype()
integerPrototype()
floatPrototype()
arrayPrototype()
enumPrototype()
addDefaultsIfNotSet()
addDefaultChildrenIfNoneSet()
requiresAtLeastOneElement()
disallowNewKeysInSubsequentConfigs()
fixXmlConfig()
useAttributeAsKey()
canBeUnset()
canBeEnabled()
canBeDisabled()
performNoDeepMerging()
ignoreExtraKeys()
normalizeKeys()
append()
getNodeBuilder()
createNode()
validateConcreteNode()
validatePrototypeNode()
Class: ArrayNodeDefinition - X-Ref
This class provides a fluent interface for defining an array node.__construct($name, NodeParentInterface $parent = null) X-Ref |
{@inheritdoc} |
setBuilder(NodeBuilder $builder) X-Ref |
{@inheritdoc} |
children() X-Ref |
{@inheritdoc} |
prototype($type) X-Ref |
Sets a prototype for child nodes. param: string $type The type of node return: NodeDefinition |
variablePrototype() X-Ref |
return: VariableNodeDefinition |
scalarPrototype() X-Ref |
return: ScalarNodeDefinition |
booleanPrototype() X-Ref |
return: BooleanNodeDefinition |
integerPrototype() X-Ref |
return: IntegerNodeDefinition |
floatPrototype() X-Ref |
return: FloatNodeDefinition |
arrayPrototype() X-Ref |
return: ArrayNodeDefinition |
enumPrototype() X-Ref |
return: EnumNodeDefinition |
addDefaultsIfNotSet() X-Ref |
Adds the default value if the node is not set in the configuration. This method is applicable to concrete nodes only (not to prototype nodes). If this function has been called and the node is not set during the finalization phase, it's default value will be derived from its children default values. return: $this |
addDefaultChildrenIfNoneSet($children = null) X-Ref |
Adds children with a default value when none are defined. This method is applicable to prototype nodes only. param: int|string|array|null $children The number of children|The child name|The children names to be added return: $this |
requiresAtLeastOneElement() X-Ref |
Requires the node to have at least one element. This method is applicable to prototype nodes only. return: $this |
disallowNewKeysInSubsequentConfigs() X-Ref |
Disallows adding news keys in a subsequent configuration. If used all keys have to be defined in the same configuration file. return: $this |
fixXmlConfig($singular, $plural = null) X-Ref |
Sets a normalization rule for XML configurations. param: string $singular The key to remap param: string $plural The plural of the key for irregular plurals return: $this |
useAttributeAsKey($name, $removeKeyItem = true) X-Ref |
Sets the attribute which value is to be used as key. This is useful when you have an indexed array that should be an associative array. You can select an item from within the array to be the key of the particular item. For example, if "id" is the "key", then: [ ['id' => 'my_name', 'foo' => 'bar'], ]; becomes [ 'my_name' => ['foo' => 'bar'], ]; If you'd like "'id' => 'my_name'" to still be present in the resulting array, then you can set the second argument of this method to false. This method is applicable to prototype nodes only. param: string $name The name of the key param: bool $removeKeyItem Whether or not the key item should be removed return: $this |
canBeUnset($allow = true) X-Ref |
Sets whether the node can be unset. param: bool $allow return: $this |
canBeEnabled() X-Ref |
Adds an "enabled" boolean to enable the current section. By default, the section is disabled. If any configuration is specified then the node will be automatically enabled: enableableArrayNode: {enabled: true, ...} # The config is enabled & default values get overridden enableableArrayNode: ~ # The config is enabled & use the default values enableableArrayNode: true # The config is enabled & use the default values enableableArrayNode: {other: value, ...} # The config is enabled & default values get overridden enableableArrayNode: {enabled: false, ...} # The config is disabled enableableArrayNode: false # The config is disabled return: $this |
canBeDisabled() X-Ref |
Adds an "enabled" boolean to enable the current section. By default, the section is enabled. return: $this |
performNoDeepMerging() X-Ref |
Disables the deep merging of the node. return: $this |
ignoreExtraKeys($remove = true) X-Ref |
Allows extra config keys to be specified under an array without throwing an exception. Those config values are ignored and removed from the resulting array. This should be used only in special cases where you want to send an entire configuration array through a special tree that processes only part of the array. param: bool $remove Whether to remove the extra keys return: $this |
normalizeKeys($bool) X-Ref |
Sets key normalization. param: bool $bool Whether to enable key normalization return: $this |
append(NodeDefinition $node) X-Ref |
{@inheritdoc} |
getNodeBuilder() X-Ref |
Returns a node builder to be used to add children and prototype. return: NodeBuilder The node builder |
createNode() X-Ref |
{@inheritdoc} |
validateConcreteNode(ArrayNode $node) X-Ref |
Validate the configuration of a concrete node. |
validatePrototypeNode(PrototypedArrayNode $node) X-Ref |
Validate the configuration of a prototype node. |
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |