1 <?php declare(strict_types=1);
43 $country = $config[
'country'] ??
'';
45 if (!is_string($country) || 2 !== strlen($country) || !is_string($user->
getSelectedCountry())) {
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
ui(ilLanguage $lng)
ilTermsOfServiceCriterionTypeGUI
Class ilTermsOfServiceCriterionConfig.
getTypeIdent()
Returns a unique id of the criterion type.string
hasUniqueNature()
Returns whether or not a criterion is unique by it's nature.Example: "User Language". A user account can only have one profile language . bool
__construct(array $countryCodes)
ilTermsOfServiceUserHasCountryCriterion constructor.
Class ilTermsOfServiceUserHasCountryCriterion.
getSelectedCountry()
Get selected country (selection drop down)
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
bool
Class ilTermsOfServiceUserHasCountryCriterionGUI.