ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 23 of file class.ilECSOrganisation.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSOrganisation::__construct ( )

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

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

31  {
32  global $DIC;
33 
34  $this->logger = $DIC->logger()->wsrv();
35  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getAbbreviation()

ilECSOrganisation::getAbbreviation ( )

Get abbreviation.

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

References $abbr.

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

◆ getName()

ilECSOrganisation::getName ( )

Get name.

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

References $name.

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

◆ loadFromJson()

ilECSOrganisation::loadFromJson (   $a_json)

load from json

Parameters
objectjson representation
Exceptions
ilException

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

References ILIAS\Repository\logger().

43  : void
44  {
45  if (!is_object($a_json)) {
46  $this->logger->warning(__METHOD__ . ': Cannot load from JSON. No object given.');
47  throw new ilException('Cannot parse ECSParticipant.');
48  }
49  $this->name = $a_json->name;
50  $this->abbr = $a_json->abbr;
51  }
+ Here is the call graph for this function:

Field Documentation

◆ $abbr

string ilECSOrganisation::$abbr
protected

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

Referenced by getAbbreviation().

◆ $logger

ilLogger ilECSOrganisation::$logger
private

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

◆ $name

string ilECSOrganisation::$name
protected

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

Referenced by getName().


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