ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSOrganisation Class Reference
+ Collaboration diagram for ilECSOrganisation:

Public Member Functions

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

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

ilECSOrganisation::__construct ( )

Constructor.

public

Parameters

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

{
}

Member Function Documentation

ilECSOrganisation::getAbbreviation ( )

Get abbreviation.

Returns
string

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

References $abbr.

{
return $this->abbr;
}
ilECSOrganisation::getName ( )

Get name.

Returns
string

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

References $name.

{
return $this->name;
}
ilECSOrganisation::loadFromJson (   $a_json)

load from json

public

Parameters
objectjson representation
Exceptions
ilException

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

References $ilLog.

{
global $ilLog;
if(!is_object($a_json))
{
$ilLog->write(__METHOD__ . ': Cannot load from JSON. No object given.');
throw new ilException('Cannot parse ECSParticipant.');
}
$this->name = $a_json->name;
$this->abbr = $a_json->abbr;
}

Field Documentation

ilECSOrganisation::$abbr
protected

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

Referenced by getAbbreviation().

ilECSOrganisation::$json_obj
protected

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

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: