Helper class for digital consent.
More...
Helper class for digital consent.
- Copyright
- 2018 Mihail Geshoski mihai.nosp@m.l@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ is_age_digital_consent_verification_enabled()
static core_auth\digital_consent::is_age_digital_consent_verification_enabled |
( |
| ) |
|
|
static |
Returns true if age and location verification is enabled in the site.
- Return values
-
◆ is_minor()
static core_auth\digital_consent::is_minor |
( |
| $age, |
|
|
| $country ) |
|
static |
Checks if a user is a digital minor.
- Parameters
-
int | $age | |
string | $country | The country code (ISO 3166-2) |
- Return values
-
◆ parse_age_digital_consent_map()
static core_auth\digital_consent::parse_age_digital_consent_map |
( |
| $ageconsentmap | ) |
|
|
static |
Parse the agedigitalconsentmap setting into an array.
- Parameters
-
string | $ageconsentmap | The value of the agedigitalconsentmap setting |
- Return values
-
array\$ageconsentmapparsed | |
The documentation for this class was generated from the following file: