diff --git a/source/development/timelines.rst b/source/development/timelines.rst index ca1d2e317..a8d0ff0be 100644 --- a/source/development/timelines.rst +++ b/source/development/timelines.rst @@ -164,12 +164,14 @@ The `fetchQuery` function ^^^^^^^^^^^^^^^^^^^^^^^^^ The fetchQuery function help to build the UNION query to gather events. This function should return an associative array MUST have the following key : + * `id` : the name of the id column * `type`: a string to indicate the type * `date`: the name of the datetime column, used to order entities by date * `FROM` (in capital) : the FROM clause. May contains JOIN instructions Those key are optional: + * `WHERE` (in capital) : the WHERE clause. Where relevant, the data must be quoted to avoid SQL injection.