Function Fast_custom_index->generate_since_where_clause
Definitions
sources/database_search.php
- Helper function for hooks, used to generate SQL for filtering rows by timestamp.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$db | object | required parameter | N/A | N/A | Database connection |
$index_table | string | required parameter | N/A | N/A | Table containing our custom index |
$since_index_fields | array | required parameter | N/A | N/A | List of fields which contain timestamps that we use for recency checks |
$since | ?TIME | required parameter | N/A | N/A | Filter to records with recency since this timestamp (null: no limit) |
$statistics_map | ?array | Null | N/A | N/A | Write into this map of singular ngram (typically, words) to number of occurrences (null: do not maintain a map) |
Return
- Extra SQL
- Type: string
- Set: N/A
- Range: N/A