ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilECSOrganisation Class Reference
+ Collaboration diagram for ilECSOrganisation:

Public Member Functions

 __construct ()
 
 loadFromJson ($a_json)
 load from json More...
 
 getName ()
 Get name. More...
 
 getAbbreviation ()
 Get abbreviation. More...
 

Protected Attributes

string $name
 
string $abbr
 

Private Attributes

ilLogger $logger
 

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 24 of file class.ilECSOrganisation.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSOrganisation::__construct ( )

Definition at line 31 of file class.ilECSOrganisation.php.

32 {
33 global $DIC;
34
35 $this->logger = $DIC->logger()->wsrv();
36 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\logger().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAbbreviation()

ilECSOrganisation::getAbbreviation ( )

Get abbreviation.

Definition at line 65 of file class.ilECSOrganisation.php.

65 : string
66 {
67 return $this->abbr;
68 }

References $abbr.

◆ getName()

ilECSOrganisation::getName ( )

Get name.

Definition at line 57 of file class.ilECSOrganisation.php.

57 : string
58 {
59 return $this->name;
60 }

References $name.

◆ loadFromJson()

ilECSOrganisation::loadFromJson (   $a_json)

load from json

Parameters
objectjson representation
Exceptions
ilException

Definition at line 44 of file class.ilECSOrganisation.php.

44 : 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 }
Base class for ILIAS Exception handling.

References ILIAS\Repository\logger().

+ Here is the call graph for this function:

Field Documentation

◆ $abbr

string ilECSOrganisation::$abbr
protected

Definition at line 27 of file class.ilECSOrganisation.php.

Referenced by getAbbreviation().

◆ $logger

ilLogger ilECSOrganisation::$logger
private

Definition at line 29 of file class.ilECSOrganisation.php.

◆ $name

string ilECSOrganisation::$name
protected

Definition at line 26 of file class.ilECSOrganisation.php.

Referenced by getName().


The documentation for this class was generated from the following file: