[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
This class provides a fluent interface for defining a node.
Author: | Johannes M. Schmitt <schmittjoh@gmail.com> |
File Size: | 346 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct($name, NodeParentInterface $parent = null) X-Ref |
Constructor. param: string $name The name of the node param: NodeParentInterface $parent The parent |
setParent(NodeParentInterface $parent) X-Ref |
Sets the parent node. param: NodeParentInterface $parent The parent return: NodeDefinition|$this |
info($info) X-Ref |
Sets info message. param: string $info The info text return: NodeDefinition|$this |
example($example) X-Ref |
Sets example configuration. param: string|array $example return: NodeDefinition|$this |
attribute($key, $value) X-Ref |
Sets an attribute on the node. param: string $key param: mixed $value return: NodeDefinition|$this |
end() X-Ref |
Returns the parent node. return: NodeParentInterface The builder of the parent node |
getNode($forceRootNode = false) X-Ref |
Creates the node. param: bool $forceRootNode Whether to force this node as the root node return: NodeInterface |
defaultValue($value) X-Ref |
Sets the default value. param: mixed $value The default value return: NodeDefinition|$this |
isRequired() X-Ref |
Sets the node as required. return: NodeDefinition|$this |
treatNullLike($value) X-Ref |
Sets the equivalent value used when the node contains null. param: mixed $value return: NodeDefinition|$this |
treatTrueLike($value) X-Ref |
Sets the equivalent value used when the node contains true. param: mixed $value return: NodeDefinition|$this |
treatFalseLike($value) X-Ref |
Sets the equivalent value used when the node contains false. param: mixed $value return: NodeDefinition|$this |
defaultNull() X-Ref |
Sets null as the default value. return: NodeDefinition|$this |
defaultTrue() X-Ref |
Sets true as the default value. return: NodeDefinition|$this |
defaultFalse() X-Ref |
Sets false as the default value. return: NodeDefinition|$this |
beforeNormalization() X-Ref |
Sets an expression to run before the normalization. return: ExprBuilder |
cannotBeEmpty() X-Ref |
Denies the node value being empty. return: NodeDefinition|$this |
validate() X-Ref |
Sets an expression to run for the validation. The expression receives the value of the node and must return it. It can modify it. An exception should be thrown when the node is not valid. return: ExprBuilder |
cannotBeOverwritten($deny = true) X-Ref |
Sets whether the node can be overwritten. param: bool $deny Whether the overwriting is forbidden or not return: NodeDefinition|$this |
validation() X-Ref |
Gets the builder for validation rules. return: ValidationBuilder |
merge() X-Ref |
Gets the builder for merging rules. return: MergeBuilder |
normalization() X-Ref |
Gets the builder for normalization rules. return: NormalizationBuilder |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |