ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilECSOrganisation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
24
class
ilECSOrganisation
25
{
26
protected
string
$name
;
27
protected
string
$abbr
;
28
29
private
ilLogger
$logger
;
30
31
public
function
__construct
()
32
{
33
global
$DIC
;
34
35
$this->
logger
= $DIC->logger()->wsrv();
36
}
37
44
public
function
loadFromJson
($a_json): void
45
{
46
if
(!is_object($a_json)) {
47
$this->
logger
->warning(__METHOD__ .
': Cannot load from JSON. No object given.'
);
48
throw
new
ilException
(
'Cannot parse ECSParticipant.'
);
49
}
50
$this->name = $a_json->name;
51
$this->abbr = $a_json->abbr;
52
}
53
57
public
function
getName
(): string
58
{
59
return
$this->name
;
60
}
61
65
public
function
getAbbreviation
(): string
66
{
67
return
$this->abbr
;
68
}
69
}
ilLogger
ilException
ilECSOrganisation\getName
getName()
Get name.
Definition:
class.ilECSOrganisation.php:57
ilECSOrganisation
Definition:
class.ilECSOrganisation.php:24
ilECSOrganisation\loadFromJson
loadFromJson($a_json)
load from json
Definition:
class.ilECSOrganisation.php:44
ilECSOrganisation\$name
string $name
Definition:
class.ilECSOrganisation.php:26
ilECSOrganisation\$abbr
string $abbr
Definition:
class.ilECSOrganisation.php:27
$DIC
global $DIC
Definition:
shib_login.php:22
ilECSOrganisation\$logger
ilLogger $logger
Definition:
class.ilECSOrganisation.php:29
ilECSOrganisation\__construct
__construct()
Definition:
class.ilECSOrganisation.php:31
ILIAS\Repository\logger
logger()
Definition:
trait.GlobalDICDomainServices.php:71
ilECSOrganisation\getAbbreviation
getAbbreviation()
Get abbreviation.
Definition:
class.ilECSOrganisation.php:65
components
ILIAS
WebServices
ECS
classes
class.ilECSOrganisation.php
Generated on Fri Apr 4 2025 23:04:34 for ILIAS by
1.8.13 (using
Doxyfile
)