ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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$

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

Constructor & Destructor Documentation

◆ __construct()

ilECSOrganisation::__construct ( )

Constructor.

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 83 of file class.ilECSOrganisation.php.

References $abbr.

84  {
85  return $this->abbr;
86  }

◆ getName()

ilECSOrganisation::getName ( )

Get name.

Returns
string

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

References $name.

75  {
76  return $this->name;
77  }

◆ loadFromJson()

ilECSOrganisation::loadFromJson (   $a_json)

load from json

public

Parameters
objectjson representation
Exceptions
ilException

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

References $ilLog.

59  {
60  global $ilLog;
61 
62  if (!is_object($a_json)) {
63  $ilLog->write(__METHOD__ . ': Cannot load from JSON. No object given.');
64  throw new ilException('Cannot parse ECSParticipant.');
65  }
66  $this->name = $a_json->name;
67  $this->abbr = $a_json->abbr;
68  }

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: