ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
reset () | |
Init property defaults. | |
setLongitude ($a_value=null) | |
getLongitude () | |
setLatitude ($a_value=null) | |
getLatitude () | |
getZoom () | |
setZoom ($a_value) | |
equals (ilADT $a_adt) | |
Check if given ADT equals self. | |
isLarger (ilADT $a_adt) | |
Check if given ADT is larger than self. | |
isSmaller (ilADT $a_adt) | |
Check if given ADT is smaller than self. | |
isNull () | |
Is currently null. | |
isValid () | |
Is currently valid. | |
translateErrorCode ($a_code) | |
Translate error-code to human-readable message. | |
getCheckSum () | |
Get unique checksum. | |
Public Member Functions inherited from ilADT | |
__construct (ilADTDefinition $a_def) | |
Constructor. | |
getType () | |
Get type (from class/instance) | |
getCopyOfDefinition () | |
Get copy of definition. | |
isLargerOrEqual (ilADT $a_adt) | |
Check if given ADT is larger or equal 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) | |
getValidationErrors () | |
Get all validation error codes. |
Data Fields | |
const | ADT_VALIDATION_ERROR_LONGITUDE = "loc1" |
const | ADT_VALIDATION_ERROR_LATITUDE = "loc2" |
Data Fields inherited from ilADT | |
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 | |
isValidDefinition (ilADTDefinition $a_def) | |
Check if definition is valid for ADT. | |
Protected Member Functions inherited from ilADT | |
setDefinition (ilADTDefinition $a_def) | |
Set definition. | |
getDefinition () | |
Get definition. | |
addValidationError ($a_error_code) | |
Add validation error code. |
Protected Attributes | |
$longitude | |
$latitude | |
$zoom | |
Protected Attributes inherited from ilADT | |
$definition | |
$validation_errors |
Definition at line 3 of file class.ilADTLocation.php.
ilADTLocation::equals | ( | ilADT | $a_adt | ) |
Check if given ADT equals self.
ilADT | $a_adt |
Reimplemented from ilADT.
Definition at line 76 of file class.ilADTLocation.php.
References ilADT\getDefinition(), getLatitude(), and getLongitude().
ilADTLocation::getCheckSum | ( | ) |
Get unique checksum.
Reimplemented from ilADT.
Definition at line 156 of file class.ilADTLocation.php.
References getLatitude(), getLongitude(), getZoom(), and isNull().
ilADTLocation::getLatitude | ( | ) |
Definition at line 58 of file class.ilADTLocation.php.
References $latitude.
Referenced by equals(), getCheckSum(), isNull(), and isValid().
ilADTLocation::getLongitude | ( | ) |
Definition at line 44 of file class.ilADTLocation.php.
References $longitude.
Referenced by equals(), getCheckSum(), isNull(), and isValid().
ilADTLocation::getZoom | ( | ) |
Definition at line 63 of file class.ilADTLocation.php.
References $zoom.
Referenced by getCheckSum().
ilADTLocation::isLarger | ( | ilADT | $a_adt | ) |
Check if given ADT is larger than self.
ilADT | $a_adt |
Reimplemented from ilADT.
Definition at line 85 of file class.ilADTLocation.php.
ilADTLocation::isNull | ( | ) |
Is currently null.
Reimplemented from ilADT.
Definition at line 98 of file class.ilADTLocation.php.
References getLatitude(), and getLongitude().
Referenced by getCheckSum().
ilADTLocation::isSmaller | ( | ilADT | $a_adt | ) |
Check if given ADT is smaller than self.
ilADT | $a_adt |
Reimplemented from ilADT.
Definition at line 90 of file class.ilADTLocation.php.
ilADTLocation::isValid | ( | ) |
Is currently valid.
Reimplemented from ilADT.
Definition at line 106 of file class.ilADTLocation.php.
References $valid, ilADT\addValidationError(), getLatitude(), and getLongitude().
|
protected |
Check if definition is valid for ADT.
Reimplemented from ilADT.
Definition at line 15 of file class.ilADTLocation.php.
ilADTLocation::reset | ( | ) |
Init property defaults.
Reimplemented from ilADT.
Definition at line 23 of file class.ilADTLocation.php.
References setLatitude(), setLongitude(), and setZoom().
ilADTLocation::setLatitude | ( | $a_value = null | ) |
Definition at line 49 of file class.ilADTLocation.php.
Referenced by reset().
ilADTLocation::setLongitude | ( | $a_value = null | ) |
Definition at line 35 of file class.ilADTLocation.php.
Referenced by reset().
ilADTLocation::setZoom | ( | $a_value | ) |
Definition at line 68 of file class.ilADTLocation.php.
Referenced by reset().
ilADTLocation::translateErrorCode | ( | $a_code | ) |
Translate error-code to human-readable message.
Exception |
int | $a_code |
Reimplemented from ilADT.
Definition at line 136 of file class.ilADTLocation.php.
References $lng.
|
protected |
Definition at line 6 of file class.ilADTLocation.php.
Referenced by getLatitude().
|
protected |
Definition at line 5 of file class.ilADTLocation.php.
Referenced by getLongitude().
|
protected |
Definition at line 7 of file class.ilADTLocation.php.
Referenced by getZoom().
const ilADTLocation::ADT_VALIDATION_ERROR_LATITUDE = "loc2" |
Definition at line 10 of file class.ilADTLocation.php.
const ilADTLocation::ADT_VALIDATION_ERROR_LONGITUDE = "loc1" |
Definition at line 9 of file class.ilADTLocation.php.