19 declare(strict_types=1);
51 $country = $config[
'country'] ??
'';
53 if (!is_string($country) || 2 !== strlen($country) || !is_string($user->
getSelectedCountry())) {
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
Class ilTermsOfServiceCriterionConfig.
getTypeIdent()
Returns a unique id of the criterion type.
hasUniqueNature()
Returns whether or not a criterion is unique by it's nature.
__construct(array $countryCodes)
ilTermsOfServiceUserHasCountryCriterion constructor.
Class ilTermsOfServiceUserHasCountryCriterion.
getSelectedCountry()
Get selected country (selection drop down)
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
Class ilTermsOfServiceUserHasCountryCriterionGUI.