ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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...
 
 getPid ()
 Get pid. 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
 
 $pid
 
 $mid
 
 $email
 
 $certid
 
 $dns
 
 $description
 
 $participantname
 
 $is_self
 

Private Member Functions

 read ()
 Read. More...
 

Private Attributes

 $logger = null
 

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 58 of file class.ilECSParticipant.php.

References $DIC, $json_obj, and read().

59  {
60  global $DIC;
61 
62  $this->logger = $DIC->logger()->wsrv();
63 
64  $this->json_obj = $json_obj;
65  $this->cid = $a_cid;
66  $this->read();
67  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

Member Function Documentation

◆ getAbbreviation()

ilECSParticipant::getAbbreviation ( )

get abbreviation of participant

public

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

145  {
146  return $this->abr;
147  }

◆ getCommunityId()

ilECSParticipant::getCommunityId ( )

get community id

public

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

References $cid.

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

◆ getDescription()

ilECSParticipant::getDescription ( )

get description

public

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

References $description.

123  {
124  return $this->description;
125  }

◆ getDNS()

ilECSParticipant::getDNS ( )

get dns

public

Parameters

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

References $dns.

112  {
113  return $this->dns;
114  }

◆ getEmail()

ilECSParticipant::getEmail ( )

get email

public

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

References $email.

99  {
100  return $this->email;
101  }

◆ getMID()

ilECSParticipant::getMID ( )

get mid

public

Parameters

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

References $mid.

88  {
89  return $this->mid;
90  }

◆ getOrganisation()

ilECSParticipant::getOrganisation ( )

Get organisation.

Returns
ilECSOrganisation $org

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

201  {
202  return $this->org;
203  }

◆ getParticipantName()

ilECSParticipant::getParticipantName ( )

get participant name

public

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

References $participantname.

134  {
135  return $this->participantname;
136  }

◆ getPid()

ilECSParticipant::getPid ( )

Get pid.

Returns
int

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

References $pid.

154  {
155  return $this->pid;
156  }

◆ isEnabled()

ilECSParticipant::isEnabled ( )

is Enabled

public

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

References $GLOBALS.

190  {
191  $GLOBALS['DIC']['ilLog']->write(__METHOD__ . ': Using deprecated call');
192  $GLOBALS['DIC']['ilLog']->logStack();
193  return false;
194  }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

◆ isPublishable()

ilECSParticipant::isPublishable ( )

is publishable (enabled and mid with own cert id)

public

Parameters

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

References isSelf().

166  {
167  return $this->isSelf();
168  }
+ Here is the call graph for this function:

◆ isSelf()

ilECSParticipant::isSelf ( )

is self

public

Parameters

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

References $is_self.

Referenced by isPublishable().

178  {
179  return (bool) $this->is_self;
180  }
+ Here is the caller graph for this function:

◆ read()

ilECSParticipant::read ( )
private

Read.

private

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

Referenced by __construct().

212  {
213  $this->pid = $this->json_obj->pid;
214  $this->mid = $this->json_obj->mid;
215  $this->email = $this->json_obj->email;
216  $this->dns = $this->json_obj->dns;
217  $this->description = $this->json_obj->description;
218 
219  $this->participantname = $this->json_obj->name;
220  $this->is_self = $this->json_obj->itsyou;
221 
222  include_once './Services/WebServices/ECS/classes/class.ilECSOrganisation.php';
223  $this->org = new ilECSOrganisation();
224  if (is_object($this->json_obj->org)) {
225  $this->org->loadFromJson($this->json_obj->org);
226  }
227  return true;
228  }
+ Here is the caller graph for this function:

Field Documentation

◆ $certid

ilECSParticipant::$certid
protected

Definition at line 40 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 42 of file class.ilECSParticipant.php.

Referenced by getDescription().

◆ $dns

ilECSParticipant::$dns
protected

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

Referenced by getDNS().

◆ $email

ilECSParticipant::$email
protected

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

Referenced by getEmail().

◆ $is_self

ilECSParticipant::$is_self
protected

Definition at line 44 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().

◆ $logger

ilECSParticipant::$logger = null
private

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

◆ $mid

ilECSParticipant::$mid
protected

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

Referenced by getMID().

◆ $participantname

ilECSParticipant::$participantname
protected

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

Referenced by getParticipantName().

◆ $pid

ilECSParticipant::$pid
protected

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

Referenced by getPid().


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