ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
ADT base class. More...
Public Member Functions | |
__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... | |
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 | |
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... | |
Protected Attributes | |
$definition | |
$validation_errors = [] | |
ilADT::__construct | ( | ilADTDefinition | $a_def | ) |
Constructor.
Definition at line 42 of file class.ilADT.php.
References reset(), and setDefinition().
|
protected |
Add validation error code.
int | $a_error_code |
Definition at line 230 of file class.ilADT.php.
References string.
Referenced by ilADTInteger\isValid(), ilADTText\isValid(), ilADTMultiText\isValid(), ilADTInternalLink\isValid(), ilADTLocation\isValid(), ilADTExternalLink\isValid(), and isValid().
|
abstract |
Check if given ADT equals self.
ilADT | $a_adt |
Referenced by getCopyOfDefinition(), isInbetweenOrEqual(), isLargerOrEqual(), and isSmallerOrEqual().
|
abstract |
Get unique checksum.
Referenced by ilADTInternalLink\equals(), ilADTMultiText\equals(), ilADTMultiEnum\equals(), ilADTGroup\equals(), ilADTExternalLink\equals(), and translateErrorCode().
ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 107 of file class.ilADT.php.
References equals(), and isLarger().
|
protected |
Get definition.
Definition at line 97 of file class.ilADT.php.
References $definition.
Referenced by ilADTInteger\equals(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTInternalLink\equals(), ilADTEnum\equals(), ilADTMultiText\equals(), ilADTText\equals(), ilADTMultiEnum\equals(), ilADTLocation\equals(), ilADTGroup\equals(), ilADTExternalLink\equals(), getType(), ilADTInteger\isLarger(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTInteger\isSmaller(), ilADTDateTime\isSmaller(), ilADTDate\isSmaller(), ilADTInteger\isValid(), ilADTMultiText\isValid(), ilADTText\isValid(), isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), and ilADTInteger\setNumber().
ilADT::getType | ( | ) |
Get type (from class/instance)
Definition at line 53 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 241 of file class.ilADT.php.
References array.
Check if self is inbetween given ADTs (exclusive)
Definition at line 172 of file class.ilADT.php.
References 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(), 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 | ) |
Check if given ADT is larger or equal than self.
ilADT | $a_adt |
Definition at line 139 of file class.ilADT.php.
References equals(), isLarger(), and isSmaller().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
|
abstract |
Is currently null.
Referenced by ilADTDate\equals(), ilADTDateTime\equals(), isInbetweenOrEqual(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTDateTime\isSmaller(), ilADTDate\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 159 of file class.ilADT.php.
References equals(), and isSmaller().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
ilADT::isValid | ( | ) |
Is currently valid.
Definition at line 214 of file class.ilADT.php.
References addValidationError(), array, getDefinition(), and isNull().
|
abstractprotected |
Check if definition is valid for ADT.
Referenced by reset(), and setDefinition().
|
protected |
Init property defaults.
Definition at line 61 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
|
protected |
Set definition.
ilException |
ilADTDefinition | $a_def |
Definition at line 83 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
ilADT::translateErrorCode | ( | $a_code | ) |
Translate error-code to human-readable message.
Exception |
int | $a_code |
Definition at line 257 of file class.ilADT.php.
References $DIC, $lng, and getCheckSum().
|
protected |
Definition at line 13 of file class.ilADT.php.
Referenced by getDefinition().
|
protected |
Definition at line 14 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.