ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Interface ilTermsOfServiceCriterionType. More...
Public Member Functions | |
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) | |
Interface ilTermsOfServiceCriterionType.
Definition at line 8 of file interface.ilTermsOfServiceCriterionType.php.
ilTermsOfServiceCriterionType::evaluate | ( | \ilObjUser | $user, |
\ilTermsOfServiceCriterionConfig | $config | ||
) |
\ilObjUser | $user | |
\ilTermsOfServiceCriterionConfig | $config |
Implemented in ilTermsOfServiceUserHasGlobalRoleCriterion, ilTermsOfServiceUserHasLanguageCriterion, and ilTermsOfServiceNullCriterion.
ilTermsOfServiceCriterionType::getTypeIdent | ( | ) |
Returns a unique id of the criterion type.
Implemented in ilTermsOfServiceUserHasGlobalRoleCriterion, ilTermsOfServiceNullCriterion, and ilTermsOfServiceUserHasLanguageCriterion.
Referenced by ilTermsOfServiceEvaluationBaseTest\getCriterionAssignmentMock(), and ilTermsOfServiceCriterionTypeFactoryTest\testKeysOfCriteriaCollectionMatchTheRespectiveTypeIdent().
ilTermsOfServiceCriterionType::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 .
Implemented in ilTermsOfServiceUserHasGlobalRoleCriterion, ilTermsOfServiceNullCriterion, and ilTermsOfServiceUserHasLanguageCriterion.
ilTermsOfServiceCriterionType::ui | ( | \ilLanguage | $lng | ) |
\ilLanguage | $lng |
Implemented in ilTermsOfServiceUserHasGlobalRoleCriterion, and ilTermsOfServiceUserHasLanguageCriterion.
Referenced by ilTermsOfServiceNullCriterion\hasUniqueNature(), ilTermsOfServiceNullCriterionTest\testCriterionAlwaysCreateEmptyConfigValue(), ilTermsOfServiceNullCriterionTest\testNoFormUserInterfaceElementsAreBuilt(), and ilTermsOfServiceNullCriterionTest\testTypeIdentPresentatioEqualsANonEmptyString().