ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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$

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

53 {
54 $this->json_obj = $json_obj;
55 $this->cid = $a_cid;
56 $this->read();
57 }

References $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 134 of file class.ilECSParticipant.php.

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

◆ getCommunityId()

ilECSParticipant::getCommunityId ( )

get community id

@access public

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

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

References $cid.

◆ getDescription()

ilECSParticipant::getDescription ( )

get description

@access public

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

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

References $description.

◆ getDNS()

ilECSParticipant::getDNS ( )

get dns

@access public

Parameters

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

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

References $dns.

◆ getEmail()

ilECSParticipant::getEmail ( )

get email

@access public

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

References $email.

◆ getMID()

ilECSParticipant::getMID ( )

get mid

@access public

Parameters

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

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

References $mid.

◆ 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

@access public

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

References $participantname.

◆ isEnabled()

ilECSParticipant::isEnabled ( )

is Enabled

@access public

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

171 {
172 $GLOBALS['ilLog']->write(__METHOD__.': Using deprecated call');
173 $GLOBALS['ilLog']->logStack();
174 return false;
175 }
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276

References $GLOBALS.

◆ isPublishable()

ilECSParticipant::isPublishable ( )

is publishable (enabled and mid with own cert id)

@access public

Parameters

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

147 {
148 return $this->isSelf();
149 }

References isSelf().

+ Here is the call graph for this function:

◆ isSelf()

ilECSParticipant::isSelf ( )

is self

@access public

Parameters

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

159 {
160 return (bool) $this->is_self;
161 }

References $is_self.

Referenced by isPublishable().

+ Here is the caller graph for this function:

◆ read()

ilECSParticipant::read ( )
private

Read.

@access private

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

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 }

References $ilLog.

Referenced by __construct().

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