ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilTermsOfServiceUserHasCountryCriterion. More...
Public Member Functions | |||||||
__construct (array $countryCodes) | |||||||
ilTermsOfServiceUserHasCountryCriterion constructor. More... | |||||||
getTypeIdent () | |||||||
Returns a unique id of the criterion type.
| |||||||
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 .
| |||||||
evaluate (ilObjUser $user, ilTermsOfServiceCriterionConfig $config) | |||||||
| |||||||
ui (ilLanguage $lng) | |||||||
| |||||||
Protected Attributes | |
$countryCodes = [] | |
Class ilTermsOfServiceUserHasCountryCriterion.
Definition at line 8 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
ilTermsOfServiceUserHasCountryCriterion::__construct | ( | array | $countryCodes | ) |
ilTermsOfServiceUserHasCountryCriterion constructor.
string[] | $countryCodes |
Definition at line 17 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
References $countryCodes.
ilTermsOfServiceUserHasCountryCriterion::evaluate | ( | ilObjUser | $user, |
ilTermsOfServiceCriterionConfig | $config | ||
) |
ilObjUser | $user | |
ilTermsOfServiceCriterionConfig | $config |
Implements ilTermsOfServiceCriterionType.
Definition at line 41 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
References $result, and ilObjUser\getSelectedCountry().
Referenced by ilTermsOfServiceUserHasCountryCriterionTest\testEvaluationFailsIfUserCountryDoesNotMatchDefinedLanguage(), and ilTermsOfServiceUserHasCountryCriterionTest\testEvaluationSucceedsIfUserCountryDoesMatchDefinedLanguage().
ilTermsOfServiceUserHasCountryCriterion::getTypeIdent | ( | ) |
Returns a unique id of the criterion type.
Implements ilTermsOfServiceCriterionType.
Definition at line 25 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 33 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
ilTermsOfServiceUserHasCountryCriterion::ui | ( | ilLanguage | $lng | ) |
ilLanguage | $lng |
Implements ilTermsOfServiceCriterionType.
Definition at line 57 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
Referenced by ilTermsOfServiceUserHasCountryCriterionTest\testFormUserInterfaceElementsAreProperlyBuilt(), ilTermsOfServiceUserHasCountryCriterionTest\testTypeIdentPresentationIsANonEmptyString(), and ilTermsOfServiceUserHasCountryCriterionTest\testValuesFromFormUserInterfaceElementsCanBeRetrieved().
|
protected |
Definition at line 11 of file class.ilTermsOfServiceUserHasCountryCriterion.php.
Referenced by __construct().