ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilADTLocalizedText. More...
Public Member Functions | |
getTextForLanguage (string $language) | |
getTranslations () | |
setTranslation (string $language, string $translation) | |
equals (ilADT $adt) | |
isLarger (ilADT $a_adt) | |
isSmaller (ilADT $a_adt) | |
isNull () | |
getCheckSum () | |
exportStdClass () | |
importStdClass ($a_std) | |
![]() | |
reset () | |
setText ($a_value=null) | |
getText () | |
getLength () | |
equals (ilADT $a_adt) | |
isLarger (ilADT $a_adt) | |
isSmaller (ilADT $a_adt) | |
isNull () | |
isValid () | |
getCheckSum () | |
exportStdClass () | |
importStdClass ($a_std) | |
![]() | |
__construct (ilADTDefinition $a_def) | |
Constructor. More... | |
getType () | |
Get type (from class/instance) More... | |
getCopyOfDefinition () | |
Get copy of definition. More... | |
equals (ilADT $a_adt) | |
Check if given ADT equals self. More... | |
isLarger (ilADT $a_adt) | |
Check if given ADT is larger than self. More... | |
isLargerOrEqual (ilADT $a_adt) | |
Check if given ADT is larger or equal than self. More... | |
isSmaller (ilADT $a_adt) | |
Check if given ADT is smaller than self. More... | |
isSmallerOrEqual (ilADT $a_adt) | |
Check if given ADT is smaller or equal than self. More... | |
isInbetween (ilADT $a_adt_from, ilADT $a_adt_to) | |
Check if self is inbetween given ADTs (exclusive) More... | |
isInbetweenOrEqual (ilADT $a_adt_from, ilADT $a_adt_to) | |
Check if self is inbetween given ADTs (inclusive) More... | |
isNull () | |
Is currently null. More... | |
isValid () | |
Is currently valid. More... | |
getValidationErrors () | |
Get all validation error codes. More... | |
translateErrorCode ($a_code) | |
Translate error-code to human-readable message. More... | |
getCheckSum () | |
Get unique checksum. More... | |
exportStdClass () | |
Export value as stdClass. More... | |
importStdClass ($a_std) | |
Import value from stdClass. More... | |
Protected Member Functions | |
isValidDefinition (ilADTDefinition $a_def) | |
![]() | |
isValidDefinition (ilADTDefinition $a_def) | |
![]() | |
reset () | |
Init property defaults. More... | |
isValidDefinition (ilADTDefinition $a_def) | |
Check if definition is valid for ADT. More... | |
setDefinition (ilADTDefinition $a_def) | |
Set definition. More... | |
getDefinition () | |
Get definition. More... | |
addValidationError ($a_error_code) | |
Add validation error code. More... | |
Private Attributes | |
$translations = [] | |
Additional Inherited Members | |
![]() | |
const | ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED = "adt1" |
const | ADT_VALIDATION_ERROR_MAX_LENGTH = "adt2" |
const | ADT_VALIDATION_ERROR_MAX_SIZE = "adt3" |
const | ADT_VALIDATION_ERROR_MIN = "adt4" |
const | ADT_VALIDATION_ERROR_MAX = "adt5" |
const | ADT_VALIDATION_DATE = "adt6" |
const | ADT_VALIDATION_ERROR_INVALID_NODE = 'adt7' |
![]() | |
$value | |
![]() | |
$definition | |
$validation_errors = [] | |
Class ilADTLocalizedText.
Definition at line 8 of file class.ilADTLocalizedText.php.
ilADTLocalizedText::equals | ( | ilADT | $adt | ) |
Definition at line 54 of file class.ilADTLocalizedText.php.
References ilADTText\$value, ilADT\getDefinition(), and getTranslations().
ilADTLocalizedText::exportStdClass | ( | ) |
Definition at line 106 of file class.ilADTLocalizedText.php.
References getTranslations(), and isNull().
ilADTLocalizedText::getCheckSum | ( | ) |
Definition at line 98 of file class.ilADTLocalizedText.php.
References getTranslations().
ilADTLocalizedText::getTextForLanguage | ( | string | $language | ) |
string | $language |
Definition at line 18 of file class.ilADTLocalizedText.php.
References ilADTText\getText(), and getTranslations().
ilADTLocalizedText::getTranslations | ( | ) |
Definition at line 29 of file class.ilADTLocalizedText.php.
References $translations.
Referenced by equals(), exportStdClass(), getCheckSum(), getTextForLanguage(), and isNull().
ilADTLocalizedText::importStdClass | ( | $a_std | ) |
Definition at line 118 of file class.ilADTLocalizedText.php.
ilADTLocalizedText::isLarger | ( | ilADT | $a_adt | ) |
Definition at line 76 of file class.ilADTLocalizedText.php.
ilADTLocalizedText::isNull | ( | ) |
Definition at line 90 of file class.ilADTLocalizedText.php.
References ilADTText\getLength(), and getTranslations().
Referenced by exportStdClass().
ilADTLocalizedText::isSmaller | ( | ilADT | $a_adt | ) |
Definition at line 83 of file class.ilADTLocalizedText.php.
|
protected |
Definition at line 46 of file class.ilADTLocalizedText.php.
ilADTLocalizedText::setTranslation | ( | string | $language, |
string | $translation | ||
) |
string | $language | |
string | $translation |
Definition at line 38 of file class.ilADTLocalizedText.php.
|
private |
Definition at line 13 of file class.ilADTLocalizedText.php.
Referenced by getTranslations().