| [ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 238 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 |
| Constructor. param: NodeDefinition $node The related node |
| always(\Closure $then = null) X-Ref |
| Marks the expression as being always used. param: \Closure $then return: ExprBuilder |
| ifTrue(\Closure $closure = null) X-Ref |
| Sets a closure to use as tests. The default one tests if the value is true. param: \Closure $closure return: ExprBuilder |
| ifString() X-Ref |
| Tests if the value is a string. return: ExprBuilder |
| ifNull() X-Ref |
| Tests if the value is null. return: ExprBuilder |
| ifArray() X-Ref |
| Tests if the value is an array. return: ExprBuilder |
| ifInArray(array $array) X-Ref |
| Tests if the value is in an array. param: array $array return: ExprBuilder |
| ifNotInArray(array $array) X-Ref |
| Tests if the value is not in an array. param: array $array return: ExprBuilder |
| then(\Closure $closure) X-Ref |
| Sets the closure to run if the test pass. param: \Closure $closure return: ExprBuilder |
| thenEmptyArray() X-Ref |
| Sets a closure returning an empty array. return: ExprBuilder |
| thenInvalid($message) X-Ref |
| Sets a closure marking the value as invalid at validation time. if you want to add the value of the node in your message just use a %s placeholder. param: string $message return: ExprBuilder |
| thenUnset() X-Ref |
| Sets a closure unsetting this key of the array at validation time. return: ExprBuilder |
| end() X-Ref |
| Returns the related node. return: NodeDefinition |
| buildExpressions(array $expressions) X-Ref |
| Builds the expressions. param: ExprBuilder[] $expressions An array of ExprBuilder instances to build return: array |
| Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |