ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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 25 of file class.ilADT.php.
ilADT::__construct | ( | ilADTDefinition | $a_def | ) |
Definition at line 51 of file class.ilADT.php.
References $DIC, ILIAS\Repository\lng(), reset(), and setDefinition().
|
protected |
Definition at line 237 of file class.ilADT.php.
Referenced by ilADTFloat\isValid(), 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 |
Export value as stdClass.
Referenced by ilAdvancedMDFieldDefinitionGroupBased\importComplexOptionFromForm(), and translateErrorCode().
|
abstract |
Get unique checksum.
Referenced by ilADTMultiText\equals(), ilADTInternalLink\equals(), ilADTGroup\equals(), ilADTMultiEnum\equals(), ilADTExternalLink\equals(), and translateErrorCode().
ilADT::getCopyOfDefinition | ( | ) |
Get copy of definition.
Definition at line 115 of file class.ilADT.php.
References equals(), and isLarger().
Referenced by ilADTLocationFormBridge\addToForm(), and ilADTLocalizedTextSearchBridgeSingle\isInCondition().
|
protected |
Get definition.
Definition at line 106 of file class.ilADT.php.
References $definition.
Referenced by ilADTBoolean\equals(), ilADTFloat\equals(), ilADTDate\equals(), ilADTDateTime\equals(), ilADTInteger\equals(), ilADTMultiText\equals(), ilADTText\equals(), ilADTLocalizedText\equals(), ilADTInternalLink\equals(), ilADTEnum\equals(), ilADTLocation\equals(), ilADTGroup\equals(), ilADTMultiEnum\equals(), ilADTExternalLink\equals(), getType(), isInbetween(), isInbetweenOrEqual(), ilADTFloat\isLarger(), ilADTInteger\isLarger(), ilADTDate\isLarger(), ilADTDateTime\isLarger(), isLargerOrEqual(), ilADTFloat\isSmaller(), ilADTInteger\isSmaller(), ilADTDate\isSmaller(), ilADTDateTime\isSmaller(), isSmallerOrEqual(), ilADTFloat\isValid(), ilADTInteger\isValid(), ilADTText\isValid(), ilADTMultiText\isValid(), isValid(), ilADTEnum\isValidOption(), ilADTMultiEnum\isValidOption(), ilADTGroup\setDefinition(), ilADTFloat\setNumber(), and ilADTInteger\setNumber().
ilADT::getType | ( | ) |
Get type (from class/instance)
Definition at line 64 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 247 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 179 of file class.ilADT.php.
References getDefinition(), isLarger(), isSmaller(), and null.
Referenced by isInbetweenOrEqual().
Check if self is inbetween given ADTs (inclusive)
Definition at line 199 of file class.ilADT.php.
References equals(), getDefinition(), isInbetween(), isNull(), and null.
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 139 of file class.ilADT.php.
References equals(), getDefinition(), isLarger(), isSmaller(), and null.
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 162 of file class.ilADT.php.
References equals(), getDefinition(), isSmaller(), and null.
Referenced by ilADTDateSearchBridgeRange\isInCondition(), and ilADTDateTimeSearchBridgeRange\isInCondition().
ilADT::isValid | ( | ) |
Definition at line 226 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 72 of file class.ilADT.php.
References isValidDefinition().
Referenced by __construct().
|
protected |
Set definition.
ilADTDefinition | $a_def |
ilException |
Definition at line 93 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 263 of file class.ilADT.php.
References exportStdClass(), getCheckSum(), importStdClass(), and ILIAS\Repository\lng().
|
protected |
Definition at line 27 of file class.ilADT.php.
Referenced by getDefinition().
|
protected |
Definition at line 29 of file class.ilADT.php.
|
protected |
Definition at line 31 of file class.ilADT.php.
Referenced by ilADTGroup\getValidationErrorsByElements().
const ilADT::ADT_VALIDATION_DATE = "adt6" |
Definition at line 46 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_INVALID_NODE = 'adt7' |
Definition at line 49 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MAX = "adt5" |
Definition at line 43 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MAX_LENGTH = "adt2" |
Definition at line 36 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MAX_SIZE = "adt3" |
Definition at line 39 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_MIN = "adt4" |
Definition at line 42 of file class.ilADT.php.
const ilADT::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED = "adt1" |
Definition at line 33 of file class.ilADT.php.