|
ILIAS
release_8 Revision v8.24
|
ADT base class. More...
Inheritance diagram for ilADT:
Collaboration diagram for ilADT:Public Member Functions | |
| __construct (ilADTDefinition $a_def) | |
| getType () | |
| Get type (from class/instance) More... | |
| reset () | |
| Init property defaults. 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) | |
| 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 () | |
| getValidationErrors () | |
| Get all validation error codes. More... | |
| translateErrorCode (string $a_code) | |
| Translate error-code to human-readable message. More... | |
| getCheckSum () | |
| Get unique checksum. More... | |
| exportStdClass () | |
| Export value as stdClass. More... | |
| importStdClass (?stdClass $a_std) | |
| Import value from stdClass. More... | |
Data Fields | |
| 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' |
Protected Member Functions | |
| isValidDefinition (ilADTDefinition $a_def) | |
| Check if definition is valid for ADT. More... | |
| setDefinition (ilADTDefinition $a_def) | |
| Set definition. More... | |
| getDefinition () | |
| Get definition. More... | |
| addValidationError (string $a_error_code) | |
Protected Attributes | |
| ilADTDefinition | $definition |
| ilLanguage | $lng |
| array | $validation_errors = [] |
ADT base class.
Definition at line 11 of file class.ilADT.php.
| ilADT::__construct | ( | ilADTDefinition | $a_def | ) |
Reimplemented in ilADTInternalLink.
Definition at line 37 of file class.ilADT.php.
References $DIC, ILIAS\Repository\lng(), reset(), and setDefinition().
Here is the call graph for this function:
|
protected |
Definition at line 223 of file class.ilADT.php.
Referenced by isValid(), ilADTExternalLink\isValid(), ilADTFloat\isValid(), ilADTInteger\isValid(), ilADTInternalLink\isValid(), ilADTLocation\isValid(), ilADTMultiText\isValid(), and ilADTText\isValid().
Here is the caller graph for this function:
|
abstract |
Check if given ADT equals self.
| ilADT | $a_adt |
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by isInbetweenOrEqual(), isLargerOrEqual(), and isSmallerOrEqual().
Here is the caller graph for this function:
|
abstract |
Export value as stdClass.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by ilAdvancedMDFieldDefinitionGroupBased\importComplexOptionFromForm().
Here is the caller graph for this function:
|
abstract |
Get unique checksum.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by ilADTExternalLink\equals(), ilADTGroup\equals(), ilADTInternalLink\equals(), ilADTMultiEnum\equals(), and ilADTMultiText\equals().
Here is the caller graph for this function:| ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 101 of file class.ilADT.php.
Referenced by ilADTLocationFormBridge\addToForm().
Here is the caller graph for this function:
|
protected |
Get definition.
Definition at line 92 of file class.ilADT.php.
References $definition.
Referenced by ilADTBoolean\equals(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTEnum\equals(), ilADTExternalLink\equals(), ilADTFloat\equals(), ilADTGroup\equals(), ilADTInteger\equals(), ilADTInternalLink\equals(), ilADTLocalizedText\equals(), ilADTLocation\equals(), ilADTMultiEnum\equals(), ilADTMultiText\equals(), ilADTText\equals(), getType(), isInbetween(), isInbetweenOrEqual(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTFloat\isLarger(), ilADTInteger\isLarger(), isLargerOrEqual(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), ilADTFloat\isSmaller(), ilADTInteger\isSmaller(), isSmallerOrEqual(), isValid(), ilADTFloat\isValid(), ilADTInteger\isValid(), ilADTMultiText\isValid(), ilADTText\isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), ilADTFloat\setNumber(), and ilADTInteger\setNumber().
Here is the caller graph for this function:| ilADT::getType | ( | ) |
Get type (from class/instance)
Reimplemented in ilADTMultiEnum.
Definition at line 50 of file class.ilADT.php.
References getDefinition().
Referenced by ilAdvancedMDValues\_deleteByFieldId(), ilADTFactory\getActiveRecordBridgeForInstance(), ilADTFactory\getDBBridgeForInstance(), ilADTFactory\getFormBridgeForInstance(), and ilADTFactory\getPresentationBridgeForInstance().
Here is the call graph for this function:
Here is the caller graph for this function:| ilADT::getValidationErrors | ( | ) |
Get all validation error codes.
Reimplemented in ilADTGroup.
Definition at line 233 of file class.ilADT.php.
|
abstract |
Import value from stdClass.
| stdClass | null | $a_std |
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Check if self is inbetween given ADTs (exclusive)
Definition at line 165 of file class.ilADT.php.
References getDefinition(), isLarger(), and isSmaller().
Referenced by isInbetweenOrEqual().
Here is the call graph for this function:
Here is the caller graph for this function:Check if self is inbetween given ADTs (inclusive)
Definition at line 185 of file class.ilADT.php.
References equals(), getDefinition(), and isInbetween().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Check if given ADT is larger than self.
| ilADT | $a_adt |
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by isInbetween(), and isLargerOrEqual().
Here is the caller graph for this function:| ilADT::isLargerOrEqual | ( | ilADT | $a_adt | ) |
Definition at line 125 of file class.ilADT.php.
References equals(), getDefinition(), and isLarger().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Is currently null.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by ilADTLocationFormBridge\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), and isValid().
Here is the caller graph for this function:
|
abstract |
Check if given ADT is smaller than self.
| ilADT | $a_adt |
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by isInbetween(), and isSmallerOrEqual().
Here is the caller graph for this function:| ilADT::isSmallerOrEqual | ( | ilADT | $a_adt | ) |
Check if given ADT is smaller or equal than self.
| ilADT | $a_adt |
Definition at line 148 of file class.ilADT.php.
References equals(), getDefinition(), and isSmaller().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
Here is the call graph for this function:
Here is the caller graph for this function:| ilADT::isValid | ( | ) |
Reimplemented in ilADTBoolean, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocation, ilADTMultiText, and ilADTText.
Definition at line 212 of file class.ilADT.php.
References addValidationError(), getDefinition(), and isNull().
Here is the call graph for this function:
|
abstractprotected |
Check if definition is valid for ADT.
| ilADTDefinition | $a_def |
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocalizedText, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by setDefinition().
Here is the caller graph for this function:| ilADT::reset | ( | ) |
Init property defaults.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTExternalLink, ilADTFloat, ilADTGroup, ilADTInteger, ilADTInternalLink, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Definition at line 58 of file class.ilADT.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Set definition.
| ilADTDefinition | $a_def |
| ilException |
Reimplemented in ilADTGroup.
Definition at line 79 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilADT::translateErrorCode | ( | string | $a_code | ) |
Translate error-code to human-readable message.
| string | $a_code |
| Exception |
Reimplemented in ilADTGroup, and ilADTLocation.
Definition at line 249 of file class.ilADT.php.
References ADT_VALIDATION_DATE, ADT_VALIDATION_ERROR_MAX, ADT_VALIDATION_ERROR_MAX_LENGTH, ADT_VALIDATION_ERROR_MAX_SIZE, ADT_VALIDATION_ERROR_MIN, ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED, and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 13 of file class.ilADT.php.
Referenced by getDefinition().
|
protected |
Definition at line 15 of file class.ilADT.php.
|
protected |
Definition at line 17 of file class.ilADT.php.
Referenced by ilADTGroup\getValidationErrorsByElements().
| const ilADT::ADT_VALIDATION_DATE = "adt6" |
Definition at line 32 of file class.ilADT.php.
Referenced by translateErrorCode().
| const ilADT::ADT_VALIDATION_ERROR_INVALID_NODE = 'adt7' |
Definition at line 35 of file class.ilADT.php.
| const ilADT::ADT_VALIDATION_ERROR_MAX = "adt5" |
Definition at line 29 of file class.ilADT.php.
Referenced by translateErrorCode().
| const ilADT::ADT_VALIDATION_ERROR_MAX_LENGTH = "adt2" |
Definition at line 22 of file class.ilADT.php.
Referenced by translateErrorCode().
| const ilADT::ADT_VALIDATION_ERROR_MAX_SIZE = "adt3" |
Definition at line 25 of file class.ilADT.php.
Referenced by translateErrorCode().
| const ilADT::ADT_VALIDATION_ERROR_MIN = "adt4" |
Definition at line 28 of file class.ilADT.php.
Referenced by translateErrorCode().
| const ilADT::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED = "adt1" |
Definition at line 19 of file class.ilADT.php.
Referenced by translateErrorCode().