ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ilECSParticipant Class Reference
+ Collaboration diagram for ilECSParticipant:

Public Member Functions

 __construct ($json_obj, $a_cid)
 Constructor. More...
 
 getCommunityId ()
 get community id More...
 
 getMID ()
 get mid More...
 
 getEmail ()
 get email More...
 
 getDNS ()
 get dns More...
 
 getDescription ()
 get description More...
 
 getParticipantName ()
 get participant name More...
 
 getAbbreviation ()
 get abbreviation of participant More...
 
 isPublishable ()
 is publishable (enabled and mid with own cert id) More...
 
 isSelf ()
 is self More...
 
 isEnabled ()
 is Enabled More...
 
 getOrganisation ()
 Get organisation. More...
 

Protected Attributes

 $json_obj
 
 $cid
 
 $mid
 
 $email
 
 $certid
 
 $dns
 
 $description
 
 $participantname
 
 $is_self
 

Private Member Functions

 read ()
 Read. More...
 

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.ilECSParticipant.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSParticipant::__construct (   $json_obj,
  $a_cid 
)

Constructor.

public

Parameters

Definition at line 52 of file class.ilECSParticipant.php.

References $json_obj, and read().

53  {
54  $this->json_obj = $json_obj;
55  $this->cid = $a_cid;
56  $this->read();
57  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getAbbreviation()

ilECSParticipant::getAbbreviation ( )

get abbreviation of participant

public

Definition at line 134 of file class.ilECSParticipant.php.

135  {
136  return $this->abr;
137  }

◆ getCommunityId()

ilECSParticipant::getCommunityId ( )

get community id

public

Definition at line 65 of file class.ilECSParticipant.php.

References $cid.

66  {
67  return $this->cid;
68  }

◆ getDescription()

ilECSParticipant::getDescription ( )

get description

public

Definition at line 112 of file class.ilECSParticipant.php.

References $description.

113  {
114  return $this->description;
115  }

◆ getDNS()

ilECSParticipant::getDNS ( )

get dns

public

Parameters

Definition at line 101 of file class.ilECSParticipant.php.

References $dns.

102  {
103  return $this->dns;
104  }

◆ getEmail()

ilECSParticipant::getEmail ( )

get email

public

Definition at line 88 of file class.ilECSParticipant.php.

References $email.

89  {
90  return $this->email;
91  }

◆ getMID()

ilECSParticipant::getMID ( )

get mid

public

Parameters

Definition at line 77 of file class.ilECSParticipant.php.

References $mid.

78  {
79  return $this->mid;
80  }

◆ getOrganisation()

ilECSParticipant::getOrganisation ( )

Get organisation.

Returns
ilECSOrganisation $org

Definition at line 181 of file class.ilECSParticipant.php.

182  {
183  return $this->org;
184  }

◆ getParticipantName()

ilECSParticipant::getParticipantName ( )

get participant name

public

Definition at line 123 of file class.ilECSParticipant.php.

References $participantname.

124  {
125  return $this->participantname;
126  }

◆ isEnabled()

ilECSParticipant::isEnabled ( )

is Enabled

public

Definition at line 170 of file class.ilECSParticipant.php.

References $GLOBALS.

171  {
172  $GLOBALS['ilLog']->write(__METHOD__.': Using deprecated call');
173  $GLOBALS['ilLog']->logStack();
174  return false;
175  }
$GLOBALS['ct_recipient']

◆ isPublishable()

ilECSParticipant::isPublishable ( )

is publishable (enabled and mid with own cert id)

public

Parameters

Definition at line 146 of file class.ilECSParticipant.php.

References isSelf().

147  {
148  return $this->isSelf();
149  }
+ Here is the call graph for this function:

◆ isSelf()

ilECSParticipant::isSelf ( )

is self

public

Parameters

Definition at line 158 of file class.ilECSParticipant.php.

References $is_self.

Referenced by isPublishable().

159  {
160  return (bool) $this->is_self;
161  }
+ Here is the caller graph for this function:

◆ read()

ilECSParticipant::read ( )
private

Read.

private

Definition at line 192 of file class.ilECSParticipant.php.

References $ilLog.

Referenced by __construct().

193  {
194  global $ilLog;
195 
196  $this->mid = $this->json_obj->mid;
197  $this->email = $this->json_obj->email;
198  #$this->certid = hexdec($this->json_obj->certid);
199  $this->dns = $this->json_obj->dns;
200  $this->description = $this->json_obj->description;
201 
202  $this->participantname = $this->json_obj->name;
203  $this->is_self = $this->json_obj->itsyou;
204 
205  include_once './Services/WebServices/ECS/classes/class.ilECSOrganisation.php';
206  $this->org = new ilECSOrganisation();
207  if(is_object($this->json_obj->org))
208  {
209  $this->org->loadFromJson($this->json_obj->org);
210  }
211  return true;
212  }
+ Here is the caller graph for this function:

Field Documentation

◆ $certid

ilECSParticipant::$certid
protected

Definition at line 39 of file class.ilECSParticipant.php.

◆ $cid

ilECSParticipant::$cid
protected

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

Referenced by getCommunityId().

◆ $description

ilECSParticipant::$description
protected

Definition at line 41 of file class.ilECSParticipant.php.

Referenced by getDescription().

◆ $dns

ilECSParticipant::$dns
protected

Definition at line 40 of file class.ilECSParticipant.php.

Referenced by getDNS().

◆ $email

ilECSParticipant::$email
protected

Definition at line 38 of file class.ilECSParticipant.php.

Referenced by getEmail().

◆ $is_self

ilECSParticipant::$is_self
protected

Definition at line 43 of file class.ilECSParticipant.php.

Referenced by isSelf().

◆ $json_obj

ilECSParticipant::$json_obj
protected

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

Referenced by __construct().

◆ $mid

ilECSParticipant::$mid
protected

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

Referenced by getMID().

◆ $participantname

ilECSParticipant::$participantname
protected

Definition at line 42 of file class.ilECSParticipant.php.

Referenced by getParticipantName().


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