| [ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 223 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ExprBuilder:: (14 methods):
__construct()
always()
ifTrue()
ifString()
ifNull()
ifArray()
ifInArray()
ifNotInArray()
then()
thenEmptyArray()
thenInvalid()
thenUnset()
end()
buildExpressions()
Class: ExprBuilder - X-Ref
This class builds an if expression.| __construct(NodeDefinition $node) X-Ref |
| No description |
| always(\Closure $then = null) X-Ref |
| Marks the expression as being always used. return: $this |
| ifTrue(\Closure $closure = null) X-Ref |
| Sets a closure to use as tests. The default one tests if the value is true. return: $this |
| ifString() X-Ref |
| Tests if the value is a string. return: $this |
| ifNull() X-Ref |
| Tests if the value is null. return: $this |
| ifArray() X-Ref |
| Tests if the value is an array. return: $this |
| ifInArray(array $array) X-Ref |
| Tests if the value is in an array. return: $this |
| ifNotInArray(array $array) X-Ref |
| Tests if the value is not in an array. return: $this |
| then(\Closure $closure) X-Ref |
| Sets the closure to run if the test pass. return: $this |
| thenEmptyArray() X-Ref |
| Sets a closure returning an empty array. return: $this |
| thenInvalid($message) X-Ref |
| Sets a closure marking the value as invalid at processing time. if you want to add the value of the node in your message just use a %s placeholder. param: string $message return: $this |
| thenUnset() X-Ref |
| Sets a closure unsetting this key of the array at processing time. return: $this |
| end() X-Ref |
| Returns the related node. return: NodeDefinition|ArrayNodeDefinition|VariableNodeDefinition |
| buildExpressions(array $expressions) X-Ref |
| Builds the expressions. param: ExprBuilder[] $expressions An array of ExprBuilder instances to build return: array |
| Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |