aqlWindowBounds.php
Table of Contents
Functions
- aqlWindowBounds() : string
- Serializes the `{ preceding: …, following: … }` bounds object of a `WINDOW` clause.
Functions
aqlWindowBounds()
Serializes the `{ preceding: …, following: … }` bounds object of a `WINDOW` clause.
aqlWindowBounds(int|float|string|null $preceding, int|float|string|null $following) : string
Numeric bounds are emitted bare; string bounds are single-quoted (ISO 8601
durations such as PT1H, or the 'unbounded' keyword). A null bound is
omitted from the object.
echo aqlWindowBounds( 1 , 1 ) ; // { preceding: 1, following: 1 }
echo aqlWindowBounds( 'unbounded' , 0 ) ; // { preceding: 'unbounded', following: 0 }
echo aqlWindowBounds( 0 , null ) ; // { preceding: 0 }
echo aqlWindowBounds( null , null ) ; // { }
Parameters
- $preceding : int|float|string|null
-
Lower window bound.
- $following : int|float|string|null
-
Upper window bound.
Tags
Return values
string —The bounds object literal, e.g. { preceding: 1, following: 1 }.