ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 84 of file class.ilECSOrganisation.php.

References $abbr.

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

◆ getName()

ilECSOrganisation::getName ( )

Get name.

Returns
string

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

References $name.

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

◆ 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  {
64  $ilLog->write(__METHOD__ . ': Cannot load from JSON. No object given.');
65  throw new ilException('Cannot parse ECSParticipant.');
66  }
67  $this->name = $a_json->name;
68  $this->abbr = $a_json->abbr;
69  }
Base class for ILIAS Exception handling.

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: