ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilECSOrganisation Class Reference
+ Collaboration diagram for ilECSOrganisation:

Public Member Functions

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

Protected Attributes

 $json_obj
 
 $name
 
 $abbr
 

Detailed Description

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

@ilCtrl_Calls

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

Constructor & Destructor Documentation

◆ __construct()

ilECSOrganisation::__construct ( )

Constructor.

@access public

Parameters

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

48 {
49 }

Member Function Documentation

◆ getAbbreviation()

ilECSOrganisation::getAbbreviation ( )

Get abbreviation.

Returns
string

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

References $abbr.

◆ getName()

ilECSOrganisation::getName ( )

Get name.

Returns
string

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

References $name.

◆ loadFromJson()

ilECSOrganisation::loadFromJson (   $a_json)

load from json

@access public

Parameters
objectjson representation
Exceptions
ilException

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

59 {
60 global $DIC;
61
62 $ilLog = $DIC['ilLog'];
63
64 if (!is_object($a_json)) {
65 $ilLog->write(__METHOD__ . ': Cannot load from JSON. No object given.');
66 throw new ilException('Cannot parse ECSParticipant.');
67 }
68 $this->name = $a_json->name;
69 $this->abbr = $a_json->abbr;
70 }
Base class for ILIAS Exception handling.
global $DIC
Definition: saml.php:7

References $DIC, and $ilLog.

Field Documentation

◆ $abbr

ilECSOrganisation::$abbr
protected

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

Referenced by getAbbreviation().

◆ $json_obj

ilECSOrganisation::$json_obj
protected

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

◆ $name

ilECSOrganisation::$name
protected

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

Referenced by getName().


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