decodeRev.php
Table of Contents
Functions
- decodeRev() : string
- Decompose the specified revision string into its components. The resulting object has a date and a count attribute. This function is supposed to be called with the _rev attribute value of a database document as argument.
Functions
decodeRev()
Decompose the specified revision string into its components. The resulting object has a date and a count attribute. This function is supposed to be called with the _rev attribute value of a database document as argument.
decodeRev(string|null $value) : string
revision (string): revision ID string returns details (object|null): object with two attributes date (string in ISO 8601 format) and count (integer number), or null If the input revision ID is not a string or cannot be processed, the function issues a warning and returns null.
Parameters
- $value : string|null
Tags
Return values
string —The formatted AQL expression (e.g. 'DECODE_REV(user.email)').