ILIAS
Release_5_0_x_branch Revision 61816
|
ADT base class. More...
Public Member Functions | |
__construct (ilADTDefinition $a_def) | |
Constructor. | |
getType () | |
Get type (from class/instance) | |
getCopyOfDefinition () | |
Get copy of definition. | |
equals (ilADT $a_adt) | |
Check if given ADT equals self. | |
isLarger (ilADT $a_adt) | |
Check if given ADT is larger than self. | |
isLargerOrEqual (ilADT $a_adt) | |
Check if given ADT is larger or equal than self. | |
isSmaller (ilADT $a_adt) | |
Check if given ADT is smaller than self. | |
isSmallerOrEqual (ilADT $a_adt) | |
Check if given ADT is smaller or equal than self. | |
isInbetween (ilADT $a_adt_from, ilADT $a_adt_to) | |
Check if self is inbetween given ADTs (exclusive) | |
isInbetweenOrEqual (ilADT $a_adt_from, ilADT $a_adt_to) | |
Check if self is inbetween given ADTs (inclusive) | |
isNull () | |
Is currently null. | |
isValid () | |
Is currently valid. | |
getValidationErrors () | |
Get all validation error codes. | |
translateErrorCode ($a_code) | |
Translate error-code to human-readable message. | |
getCheckSum () | |
Get unique checksum. |
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. | |
isValidDefinition (ilADTDefinition $a_def) | |
Check if definition is valid for ADT. | |
setDefinition (ilADTDefinition $a_def) | |
Set definition. | |
getDefinition () | |
Get definition. | |
addValidationError ($a_error_code) | |
Add validation error code. |
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.
Referenced by ilADTInteger\isValid(), ilADTText\isValid(), ilADTMultiText\isValid(), ilADTLocation\isValid(), and isValid().
|
abstract |
Check if given ADT equals self.
ilADT | $a_adt |
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTMultiText, ilADTText, ilADTEnum, ilADTBoolean, ilADTDate, ilADTDateTime, and ilADTInteger.
Referenced by isInbetweenOrEqual(), isLargerOrEqual(), and isSmallerOrEqual().
|
abstract |
Get unique checksum.
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiText, ilADTDate, ilADTDateTime, ilADTText, ilADTInteger, ilADTMultiEnum, ilADTEnum, and ilADTBoolean.
Referenced by ilADTMultiText\equals(), ilADTMultiEnum\equals(), and ilADTGroup\equals().
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 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)
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().
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().
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().
|
abstract |
Check if given ADT is larger than self.
ilADT | $a_adt |
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTMultiText, ilADTText, ilADTEnum, ilADTDate, ilADTDateTime, ilADTBoolean, and ilADTInteger.
Referenced by 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(), and isLarger().
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
|
abstract |
Is currently null.
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTDate, ilADTDateTime, ilADTMultiText, ilADTText, ilADTEnum, ilADTInteger, and ilADTBoolean.
Referenced by ilADTDate\equals(), ilADTDateTime\equals(), ilADTDateTime\isLarger(), ilADTDate\isLarger(), ilADTDateTime\isSmaller(), ilADTDate\isSmaller(), and isValid().
|
abstract |
Check if given ADT is smaller than self.
ilADT | $a_adt |
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTDate, ilADTDateTime, ilADTMultiText, ilADTText, ilADTEnum, ilADTBoolean, and ilADTInteger.
Referenced by isInbetween(), 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.
Reimplemented in ilADTGroup, ilADTLocation, ilADTDate, ilADTDateTime, ilADTMultiText, ilADTText, ilADTInteger, and ilADTBoolean.
Definition at line 216 of file class.ilADT.php.
References addValidationError(), getDefinition(), and isNull().
|
abstractprotected |
Check if definition is valid for ADT.
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTInteger, ilADTMultiText, ilADTText, and ilADTFloat.
Referenced by setDefinition().
|
protected |
Init property defaults.
Reimplemented in ilADTGroup, ilADTLocation, ilADTMultiEnum, ilADTBoolean, ilADTDate, ilADTDateTime, ilADTEnum, ilADTInteger, ilADTMultiText, and ilADTText.
Definition at line 59 of file class.ilADT.php.
Referenced by __construct().
|
protected |
Set definition.
ilException |
ilADTDefinition | $a_def |
Reimplemented in ilADTGroup.
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 |
Reimplemented in ilADTGroup, and ilADTLocation.
Definition at line 261 of file class.ilADT.php.
References $lng.
|
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.