ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilTermsOfServiceUserHasCountryCriterion. More...
Public Member Functions | |
__construct (array $countryCodes) | |
ilTermsOfServiceUserHasCountryCriterion constructor. More... | |
getTypeIdent () | |
Returns a unique id of the criterion type. More... | |
hasUniqueNature () | |
Returns whether or not a criterion is unique by it's nature. More... | |
evaluate (ilObjUser $user, ilTermsOfServiceCriterionConfig $config) | |
ui (ilLanguage $lng) | |
Protected Attributes | |
array | $countryCodes = [] |
Class ilTermsOfServiceUserHasCountryCriterion.
Definition at line 25 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
ilTermsOfServiceUserHasCountryCriterion::__construct | ( | array | $countryCodes | ) |
ilTermsOfServiceUserHasCountryCriterion constructor.
string[] | $countryCodes |
Definition at line 34 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
References $countryCodes.
ilTermsOfServiceUserHasCountryCriterion::evaluate | ( | ilObjUser | $user, |
ilTermsOfServiceCriterionConfig | $config | ||
) |
ilObjUser | $user | |
ilTermsOfServiceCriterionConfig | $config |
Implements ilTermsOfServiceCriterionType.
Definition at line 49 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
References ilObjUser\getSelectedCountry().
Referenced by ilTermsOfServiceUserHasCountryCriterionTest\testEvaluationFailsIfUserCountryDoesNotMatchDefinedLanguage(), and ilTermsOfServiceUserHasCountryCriterionTest\testEvaluationSucceedsIfUserCountryDoesMatchDefinedLanguage().
ilTermsOfServiceUserHasCountryCriterion::getTypeIdent | ( | ) |
Returns a unique id of the criterion type.
Implements ilTermsOfServiceCriterionType.
Definition at line 39 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
Referenced by ilTermsOfServiceUserHasCountryCriterionTest\testFormUserInterfaceElementsAreProperlyBuilt(), and ilTermsOfServiceUserHasCountryCriterionTest\testValuesFromFormUserInterfaceElementsCanBeRetrieved().
ilTermsOfServiceUserHasCountryCriterion::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 .
Implements ilTermsOfServiceCriterionType.
Definition at line 44 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
ilTermsOfServiceUserHasCountryCriterion::ui | ( | ilLanguage | $lng | ) |
ilLanguage | $lng |
Implements ilTermsOfServiceCriterionType.
Definition at line 60 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
Referenced by ilTermsOfServiceUserHasCountryCriterionTest\testFormUserInterfaceElementsAreProperlyBuilt(), ilTermsOfServiceUserHasCountryCriterionTest\testTypeIdentPresentationIsANonEmptyString(), and ilTermsOfServiceUserHasCountryCriterionTest\testValuesFromFormUserInterfaceElementsCanBeRetrieved().
|
protected |
Definition at line 28 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
Referenced by __construct().