ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 24 of file class.ilECSOrganisation.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSOrganisation::__construct ( )

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

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

32  {
33  global $DIC;
34 
35  $this->logger = $DIC->logger()->wsrv();
36  }
global $DIC
Definition: shib_login.php:22
+ 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.

References $abbr.

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

◆ getName()

ilECSOrganisation::getName ( )

Get name.

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

References $name.

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

◆ loadFromJson()

ilECSOrganisation::loadFromJson (   $a_json)

load from json

Parameters
objectjson representation
Exceptions
ilException

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

References ILIAS\Repository\logger().

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  }
+ 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: