ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
reset () | |
Reset. More... | |
setTitle (?string $a_title=null) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setUrl (?string $a_value=null) | |
Set url. More... | |
getUrl () | |
Get url. More... | |
equals (ilADT $a_adt) | |
isLarger (ilADT $a_adt) | |
isSmaller (ilADT $a_adt) | |
isNull () | |
is null More... | |
getLength () | |
Get length. More... | |
isValid () | |
getCheckSum () | |
get checksum More... | |
exportStdClass () | |
importStdClass (?stdClass $a_std) | |
![]() | |
__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 | MAX_LENGTH = 2000 |
![]() | |
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) | |
![]() | |
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 | |
string | $value |
string | $title |
![]() | |
ilADTDefinition | $definition |
ilLanguage | $lng |
array | $validation_errors = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 21 of file class.ilADTExternalLink.php.
ilADTExternalLink::equals | ( | ilADT | $a_adt | ) |
ilADT | $a_adt |
Definition at line 93 of file class.ilADTExternalLink.php.
References getCheckSum(), ilADT\getCheckSum(), and ilADT\getDefinition().
ilADTExternalLink::exportStdClass | ( | ) |
Definition at line 160 of file class.ilADTExternalLink.php.
References getTitle(), getUrl(), and isNull().
ilADTExternalLink::getCheckSum | ( | ) |
get checksum
Definition at line 149 of file class.ilADTExternalLink.php.
References getTitle(), getUrl(), and isNull().
Referenced by equals().
ilADTExternalLink::getLength | ( | ) |
Get length.
Definition at line 124 of file class.ilADTExternalLink.php.
References getTitle(), and getUrl().
Referenced by isNull(), and isValid().
ilADTExternalLink::getTitle | ( | ) |
Get title.
Definition at line 63 of file class.ilADTExternalLink.php.
References $title.
Referenced by exportStdClass(), getCheckSum(), and getLength().
ilADTExternalLink::getUrl | ( | ) |
Get url.
Definition at line 84 of file class.ilADTExternalLink.php.
References $value.
Referenced by exportStdClass(), getCheckSum(), and getLength().
ilADTExternalLink::importStdClass | ( | ?stdClass | $a_std | ) |
Definition at line 174 of file class.ilADTExternalLink.php.
References setTitle(), and setUrl().
ilADTExternalLink::isLarger | ( | ilADT | $a_adt | ) |
Definition at line 101 of file class.ilADTExternalLink.php.
ilADTExternalLink::isNull | ( | ) |
is null
Definition at line 115 of file class.ilADTExternalLink.php.
References getLength().
Referenced by exportStdClass(), getCheckSum(), and isValid().
ilADTExternalLink::isSmaller | ( | ilADT | $a_adt | ) |
Definition at line 106 of file class.ilADTExternalLink.php.
ilADTExternalLink::isValid | ( | ) |
Definition at line 133 of file class.ilADTExternalLink.php.
References $valid, ilADT\addValidationError(), getLength(), and isNull().
|
protected |
ilADTDefinition | $a_def |
Definition at line 32 of file class.ilADTExternalLink.php.
ilADTExternalLink::reset | ( | ) |
Reset.
Definition at line 40 of file class.ilADTExternalLink.php.
ilADTExternalLink::setTitle | ( | ?string | $a_title = null | ) |
Set title.
string | null | $a_title |
Definition at line 51 of file class.ilADTExternalLink.php.
Referenced by importStdClass().
ilADTExternalLink::setUrl | ( | ?string | $a_value = null | ) |
Set url.
string | null | $a_value |
Definition at line 72 of file class.ilADTExternalLink.php.
Referenced by importStdClass().
|
protected |
Definition at line 26 of file class.ilADTExternalLink.php.
Referenced by getTitle().
|
protected |
Definition at line 25 of file class.ilADTExternalLink.php.
Referenced by getUrl().
const ilADTExternalLink::MAX_LENGTH = 2000 |
Definition at line 23 of file class.ilADTExternalLink.php.