ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilGeoLocation.php
Go to the documentation of this file.
1
<?php
2
3
class
ilGeoLocation
{
4
6
protected
$id
;
7
9
protected
$title
;
10
12
protected
$latitude
;
13
15
protected
$longitude
;
16
18
protected
$expiration_timestamp
;
19
20
public
function
__construct
(
21
int
$a_id,
22
string
$a_title,
23
float
$a_latitude,
24
float
$a_longitude,
25
\
DateTimeImmutable
$a_expiration_timestamp
26
) {
27
$this->
id
= $a_id;
28
$this->title = $a_title;
29
// In a real world example we might want to conduct more checks on latitude
30
// and longitude here.
31
$this->latitude = $a_latitude;
32
$this->longitude = $a_longitude;
33
$this->expiration_timestamp = $a_expiration_timestamp;
34
}
35
36
public
function
getId
() : int
37
{
38
return
$this->id
;
39
}
40
41
public
function
getTitle
() : string
42
{
43
return
$this->title
;
44
}
45
46
public
function
getLatitude
() : float
47
{
48
return
$this->latitude
;
49
}
50
51
public
function
getLongitude
() : float
52
{
53
return
$this->longitude
;
54
}
55
56
public
function
getExpirationAsTimestamp
() : float
57
{
58
return
$this->expiration_timestamp->getTimestamp();
59
}
60
61
public
function
getExpirationAsImmutableDateTime
() : \
DateTimeImmutable
62
{
63
return
$this->expiration_timestamp
;
64
}
65
}
ilGeoLocation\$expiration_timestamp
$expiration_timestamp
Definition:
ilGeoLocation.php:18
DateTimeImmutable
ilGeoLocation\$latitude
$latitude
Definition:
ilGeoLocation.php:12
ilGeoLocation\getTitle
getTitle()
Definition:
ilGeoLocation.php:41
ilGeoLocation\getLongitude
getLongitude()
Definition:
ilGeoLocation.php:51
ilGeoLocation\getExpirationAsImmutableDateTime
getExpirationAsImmutableDateTime()
Definition:
ilGeoLocation.php:61
ilGeoLocation\getExpirationAsTimestamp
getExpirationAsTimestamp()
Definition:
ilGeoLocation.php:56
ilGeoLocation
Definition:
ilGeoLocation.php:3
ilGeoLocation\getLatitude
getLatitude()
Definition:
ilGeoLocation.php:46
ilGeoLocation\__construct
__construct(int $a_id, string $a_title, float $a_latitude, float $a_longitude, \DateTimeImmutable $a_expiration_timestamp)
Definition:
ilGeoLocation.php:20
ilGeoLocation\$title
$title
Definition:
ilGeoLocation.php:9
ilGeoLocation\$longitude
$longitude
Definition:
ilGeoLocation.php:15
ilGeoLocation\getId
getId()
Definition:
ilGeoLocation.php:36
ilGeoLocation\$id
$id
Definition:
ilGeoLocation.php:6
docs
development
code-examples
repository-pattern
00_base_classes
ilGeoLocation.php
Generated on Wed Apr 9 2025 20:00:58 for ILIAS by
1.8.13 (using
Doxyfile
)