1<?
php declare(strict_types=1);
43 $country =
$config[
'country'] ??
'';
45 if (!is_string($country) || 2 !== strlen($country) || !is_string($user->
getSelectedCountry())) {
An exception for terminatinating execution or to throw for unit testing.
getSelectedCountry()
Get selected country (selection drop down)
Class ilTermsOfServiceCriterionConfig.
Class ilTermsOfServiceUserHasCountryCriterionGUI.
Class ilTermsOfServiceUserHasCountryCriterion.
ui(ilLanguage $lng)
ilTermsOfServiceCriterionTypeGUI
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"....
__construct(array $countryCodes)
ilTermsOfServiceUserHasCountryCriterion constructor.
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
bool
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.