Function Hook_privacy_core->get_selection_sql
Definitions
sources/hooks/systems/privacy/core.php
- Get selection SQL for a particular search.You should run fill_in_missing_privacy_criteria before running this.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$table_name | ID_TEXT | required parameter | N/A | N/A | Table name |
$table_details | array | required parameter | N/A | N/A | Details from the info function for the given table |
$table_action | integer | required parameter | N/A | N/A | A PRIVACY_METHOD_* constant which we plan to execute on this table |
$purge_retention | boolean | False | N/A | N/A | Whether to only return records which should no longer be retained (false: do not consider retention period) |
$username | ID_TEXT | Blank (empty string) | N/A | N/A | Username to search for (blank: none) |
$ip_addresses | array | [] | N/A | N/A | List of IP addresses to search for |
$member_id | ?MEMBER | Null | N/A | N/A | Member ID to search for (null: none) |
$email_address | string | Blank (empty string) | N/A | N/A | E-mail address to search for (blank: none) |
$others | array | [] | N/A | N/A | List of other strings to search for, via additional-anonymise-fields |
Return
- The stem of the SQL query (blank: do not run this search as there are no filters)
- Type: string
- Set: N/A
- Range: N/A