Function __global->privacy_limits_for
Definitions
sources/content_privacy.php
- Find list of members who may view some content.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The content type |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The content ID |
| $strict_all | boolean | No | No | False | N/A | N/A | Whether to get a full list including friends even when there are over a thousand friends |
Returns
- A list of member IDs that have access (null: no restrictions)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find list of members who may view some content.
*
* @param ID_TEXT $content_type The content type
* @param ID_TEXT $content_id The content ID
* @param boolean $strict_all Whether to get a full list including friends even when there are over a thousand friends
* @return ?array A list of member IDs that have access (null: no restrictions)
*/
function privacy_limits_for(string $content_type, string $content_id, bool $strict_all = false) : ?array
* Find list of members who may view some content.
*
* @param ID_TEXT $content_type The content type
* @param ID_TEXT $content_id The content ID
* @param boolean $strict_all Whether to get a full list including friends even when there are over a thousand friends
* @return ?array A list of member IDs that have access (null: no restrictions)
*/
function privacy_limits_for(string $content_type, string $content_id, bool $strict_all = false) : ?array

