ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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" |
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().
|
protected |
Add validation error code.
int | $a_error_code |
Definition at line 233 of file class.ilADT.php.
References string.
Referenced by ilADTInteger\isValid(), ilADTText\isValid(), ilADTMultiText\isValid(), ilADTLocation\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 ilADTMultiText\equals(), ilADTMultiEnum\equals(), ilADTGroup\equals(), and translateErrorCode().
ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 109 of file class.ilADT.php.
References equals(), and isLarger().
|
protected |
Get definition.
Definition at line 99 of file class.ilADT.php.
References $definition.
Referenced by ilADTInteger\equals(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTEnum\equals(), ilADTMultiText\equals(), ilADTText\equals(), ilADTMultiEnum\equals(), ilADTLocation\equals(), ilADTGroup\equals(), getType(), ilADTInteger\isLarger(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), ilADTInteger\isSmaller(), ilADTDateTime\isSmaller(), ilADTDate\isSmaller(), ilADTInteger\isValid(), ilADTText\isValid(), ilADTMultiText\isValid(), isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), and ilADTInteger\setNumber().
ilADT::getType | ( | ) |
Get type (from class/instance)
Definition at line 51 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 244 of file class.ilADT.php.
References array.
Check if self is inbetween given ADTs (exclusive)
Definition at line 174 of file class.ilADT.php.
References isLarger(), and isSmaller().
Referenced by isInbetweenOrEqual().
Check if self is inbetween given ADTs (inclusive)
Definition at line 187 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 141 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 161 of file class.ilADT.php.
References equals(), and isSmaller().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
ilADT::isValid | ( | ) |
Is currently valid.
Definition at line 216 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 59 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
|
protected |
Set definition.
ilException |
ilADTDefinition | $a_def |
Definition at line 82 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 261 of file class.ilADT.php.
References $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_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.