Function Parental_controls_loader->pcc__parental_consent
Definitions
sources/cns_parental_controls.php
- Run the parental_consent control.If $params contains member_id, we will also check consent status / send e-mail if necessary, and log them out of they do not have consent.
- Visibility: private
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $guid | ID_TEXT | No | No | required parameter | N/A | N/A | The GUID of the control to run |
| $age | integer | No | No | required parameter | N/A | N/A | The age of the member |
| $region | ?ID_TEXT | No | No | required parameter | N/A | N/A | The ISO code of the region in which the member is located (null: do not check on region-specific controls) |
| $params | array | No | No | required parameter | N/A | N/A | Array of additional parameters |
Returns
- Details about the parental control restriction (false: member is not subject to restriction based on criteria)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Run the parental_consent control.If $params contains member_id, we will also check consent status / send e-mail if necessary, and log them out of they do not have consent.
*
* @param ID_TEXT $guid The GUID of the control to run
* @param integer $age The age of the member
* @param ?ID_TEXT $region The ISO code of the region in which the member is located (null: do not check on region-specific controls)
* @param array $params Array of additional parameters
* @return ~array Details about the parental control restriction (false: member is not subject to restriction based on criteria)
*/
private function pcc__parental_consent(string $guid, int $age, ?string $region, array $params)
* Run the parental_consent control.If $params contains member_id, we will also check consent status / send e-mail if necessary, and log them out of they do not have consent.
*
* @param ID_TEXT $guid The GUID of the control to run
* @param integer $age The age of the member
* @param ?ID_TEXT $region The ISO code of the region in which the member is located (null: do not check on region-specific controls)
* @param array $params Array of additional parameters
* @return ~array Details about the parental control restriction (false: member is not subject to restriction based on criteria)
*/
private function pcc__parental_consent(string $guid, int $age, ?string $region, array $params)

