15 return 'usr_language';
31 $lng = $config[
'lng'] ??
'';
33 if (!is_string(
$lng) || 2 !== strlen(
$lng)) {
47 return new \ilTermsOfServiceUserHasLanguageCriterionGUI($this, $lng);
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
Class ilTermsOfServiceCriterionConfig.
evaluate(\ilObjUser $user, \ilTermsOfServiceCriterionConfig $config)
bool
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
Class ilTermsOfServiceUserHasLanguageCriterion.
getTypeIdent()
Returns a unique id of the criterion type.string
getLanguage()
returns a 2char-language-string public