|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
ADT base class. More...
Inheritance diagram for ilADT:
Collaboration diagram for ilADT: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" |
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 40 of file class.ilADT.php.
References reset(), and setDefinition().
Here is the call graph for this function:
|
protected |
Add validation error code.
| int | $a_error_code |
Definition at line 233 of file class.ilADT.php.
Referenced by isValid(), ilADTInteger\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, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by isInbetweenOrEqual(), isLargerOrEqual(), and isSmallerOrEqual().
Here is the caller graph for this function:
|
abstract |
Get unique checksum.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by ilADTGroup\equals(), ilADTMultiEnum\equals(), and ilADTMultiText\equals().
Here is the caller graph for this function:| ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 109 of file class.ilADT.php.
|
protected |
Get definition.
Definition at line 99 of file class.ilADT.php.
References $definition.
Referenced by ilADTDate\equals(), ilADTDateTime\equals(), ilADTEnum\equals(), ilADTGroup\equals(), ilADTInteger\equals(), ilADTLocation\equals(), ilADTMultiEnum\equals(), ilADTMultiText\equals(), ilADTText\equals(), getType(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTInteger\isLarger(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), ilADTInteger\isSmaller(), isValid(), ilADTInteger\isValid(), ilADTMultiText\isValid(), ilADTText\isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), and ilADTInteger\setNumber().
Here is the caller graph for this function:| ilADT::getType | ( | ) |
Get type (from class/instance)
Reimplemented in ilADTMultiEnum.
Definition at line 51 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 244 of file class.ilADT.php.
Check if self is inbetween given ADTs (exclusive)
Definition at line 174 of file class.ilADT.php.
References 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 187 of file class.ilADT.php.
References equals(), 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, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by isInbetween(), and isLargerOrEqual().
Here is the caller graph for this function:| ilADT::isLargerOrEqual | ( | ilADT | $a_adt | ) |
Check if given ADT is larger or equal than self.
| ilADT | $a_adt |
Definition at line 141 of file class.ilADT.php.
References equals(), 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, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by 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, ilADTGroup, ilADTInteger, 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 161 of file class.ilADT.php.
References equals(), 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 | ( | ) |
Is currently valid.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiText, and ilADTText.
Definition at line 216 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.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTFloat, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Referenced by setDefinition().
Here is the caller graph for this function:
|
protected |
Init property defaults.
Reimplemented in ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTGroup, ilADTInteger, ilADTLocation, ilADTMultiEnum, ilADTMultiText, and ilADTText.
Definition at line 59 of file class.ilADT.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Set definition.
| ilException |
| ilADTDefinition | $a_def |
Reimplemented in ilADTGroup.
Definition at line 82 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 | ( | $a_code | ) |
Translate error-code to human-readable message.
| Exception |
| int | $a_code |
Reimplemented in ilADTGroup, and ilADTLocation.
Definition at line 261 of file class.ilADT.php.
References $lng, ADT_VALIDATION_DATE, ADT_VALIDATION_ERROR_MAX, ADT_VALIDATION_ERROR_MAX_LENGTH, ADT_VALIDATION_ERROR_MAX_SIZE, ADT_VALIDATION_ERROR_MIN, and ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED.
|
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.
Referenced by translateErrorCode().
| 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().