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$

@ilCtrl_Calls

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

Constructor & Destructor Documentation

◆ __construct()

ilECSParticipant::__construct (   $json_obj,
  $a_cid 
)

Constructor.

@access public

Parameters

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

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getAbbreviation()

ilECSParticipant::getAbbreviation ( )

get abbreviation of participant

@access public

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

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

◆ getCommunityId()

ilECSParticipant::getCommunityId ( )

get community id

@access public

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

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

References $cid.

◆ getDescription()

ilECSParticipant::getDescription ( )

get description

@access public

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

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

References $description.

◆ getDNS()

ilECSParticipant::getDNS ( )

get dns

@access public

Parameters

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

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

References $dns.

◆ getEmail()

ilECSParticipant::getEmail ( )

get email

@access public

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

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

References $email.

◆ getMID()

ilECSParticipant::getMID ( )

get mid

@access public

Parameters

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

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

References $mid.

◆ 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

@access public

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

References $participantname.

◆ getPid()

ilECSParticipant::getPid ( )

Get pid.

Returns
int

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

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

References $pid.

◆ isEnabled()

ilECSParticipant::isEnabled ( )

is Enabled

@access public

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

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.

References $GLOBALS.

◆ isPublishable()

ilECSParticipant::isPublishable ( )

is publishable (enabled and mid with own cert id)

@access public

Parameters

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

166 {
167 return $this->isSelf();
168 }

References isSelf().

+ Here is the call graph for this function:

◆ isSelf()

ilECSParticipant::isSelf ( )

is self

@access public

Parameters

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

178 {
179 return (bool) $this->is_self;
180 }

References $is_self.

Referenced by isPublishable().

+ Here is the caller graph for this function:

◆ read()

ilECSParticipant::read ( )
private

Read.

@access private

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

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 }

Referenced by __construct().

+ 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: