ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
ADT base class. More...
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 | ) |
Definition at line 37 of file class.ilADT.php.
References $DIC, ILIAS\Repository\lng(), reset(), and setDefinition().
|
protected |
Definition at line 223 of file class.ilADT.php.
Referenced by ilADTText\isValid(), ilADTMultiText\isValid(), ilADTFloat\isValid(), ilADTInteger\isValid(), ilADTLocation\isValid(), ilADTInternalLink\isValid(), ilADTExternalLink\isValid(), and isValid().
|
abstract |
Check if given ADT equals self.
ilADT | $a_adt |
Referenced by getCopyOfDefinition(), isInbetweenOrEqual(), isLargerOrEqual(), and isSmallerOrEqual().
|
abstract |
Export value as stdClass.
Referenced by ilAdvancedMDFieldDefinitionGroupBased\importComplexOptionFromForm(), and translateErrorCode().
|
abstract |
Get unique checksum.
Referenced by ilADTMultiText\equals(), ilADTGroup\equals(), ilADTInternalLink\equals(), ilADTMultiEnum\equals(), ilADTExternalLink\equals(), and translateErrorCode().
ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 101 of file class.ilADT.php.
References equals(), and isLarger().
Referenced by ilADTLocationFormBridge\addToForm().
|
protected |
Get definition.
Definition at line 92 of file class.ilADT.php.
References $definition.
Referenced by ilADTBoolean\equals(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTMultiText\equals(), ilADTText\equals(), ilADTFloat\equals(), ilADTInteger\equals(), ilADTEnum\equals(), ilADTLocalizedText\equals(), ilADTLocation\equals(), ilADTGroup\equals(), ilADTInternalLink\equals(), ilADTMultiEnum\equals(), ilADTExternalLink\equals(), getType(), isInbetween(), isInbetweenOrEqual(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTFloat\isLarger(), ilADTInteger\isLarger(), isLargerOrEqual(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), ilADTFloat\isSmaller(), ilADTInteger\isSmaller(), isSmallerOrEqual(), ilADTText\isValid(), ilADTMultiText\isValid(), ilADTFloat\isValid(), ilADTInteger\isValid(), isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), ilADTInteger\setNumber(), and ilADTFloat\setNumber().
ilADT::getType | ( | ) |
Get type (from class/instance)
Definition at line 50 of file class.ilADT.php.
References getDefinition().
Referenced by ilAdvancedMDValues\_deleteByFieldId(), ilADTFactory\getActiveRecordBridgeForInstance(), ilADTFactory\getDBBridgeForInstance(), ilADTFactory\getFormBridgeForInstance(), and ilADTFactory\getPresentationBridgeForInstance().
ilADT::getValidationErrors | ( | ) |
Get all validation error codes.
Definition at line 233 of file class.ilADT.php.
|
abstract |
Import value from stdClass.
stdClass | null | $a_std |
Referenced by ilAdvancedMDFieldDefinitionGroupBased\getADTForOption(), and translateErrorCode().
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().
Check if self is inbetween given ADTs (inclusive)
Definition at line 185 of file class.ilADT.php.
References equals(), getDefinition(), isInbetween(), and isNull().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
|
abstract |
Check if given ADT is larger than self.
ilADT | $a_adt |
Referenced by getCopyOfDefinition(), isInbetween(), and isLargerOrEqual().
ilADT::isLargerOrEqual | ( | ilADT | $a_adt | ) |
Definition at line 125 of file class.ilADT.php.
References equals(), getDefinition(), isLarger(), and isSmaller().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
|
abstract |
Is currently null.
Referenced by ilADTLocationFormBridge\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTDate\equals(), ilADTDateTime\equals(), isInbetweenOrEqual(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), and isValid().
|
abstract |
Check if given ADT is smaller than self.
ilADT | $a_adt |
Referenced by isInbetween(), isLargerOrEqual(), and isSmallerOrEqual().
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().
ilADT::isValid | ( | ) |
Definition at line 212 of file class.ilADT.php.
References addValidationError(), getDefinition(), and isNull().
|
abstractprotected |
Check if definition is valid for ADT.
ilADTDefinition | $a_def |
Referenced by reset(), and setDefinition().
ilADT::reset | ( | ) |
Init property defaults.
Definition at line 58 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
|
protected |
Set definition.
ilADTDefinition | $a_def |
ilException |
Definition at line 79 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
ilADT::translateErrorCode | ( | string | $a_code | ) |
Translate error-code to human-readable message.
string | $a_code |
Exception |
Definition at line 249 of file class.ilADT.php.
References exportStdClass(), getCheckSum(), importStdClass(), and ILIAS\Repository\lng().
|
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.
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.
const ilADT::ADT_VALIDATION_ERROR_MAX_LENGTH = "adt2" |
Definition at line 22 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MAX_SIZE = "adt3" |
Definition at line 25 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MIN = "adt4" |
Definition at line 28 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED = "adt1" |
Definition at line 19 of file class.ilADT.php.