ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilECSEvent Class Reference
+ Collaboration diagram for ilECSEvent:

Public Member Functions

 __construct ($json_obj)
 
 getStatus ()
 get title More...
 
 getRessource ()
 getDescription More...
 
 getRessourceId ()
 Get ressource id. More...
 
 getRessourceType ()
 Get ressource type. More...
 

Data Fields

const CREATED = 'created'
 
const UPDATED = 'updated'
 
const DESTROYED = 'destroyed'
 
const NEW_EXPORT = 'new_export'
 
string $status = ''
 
string $ressource = ''
 
int $ressource_id = 0
 
string $ressource_type = ''
 

Protected Attributes

object $json_obj
 

Private Member Functions

 read ()
 Read community entries and participants. More...
 

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilECSEvent.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSEvent::__construct (   $json_obj)
Parameters
objectjson object

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

41 {
42 $this->json_obj = $json_obj;
43 $this->read();
44 }
read()
Read community entries and participants.

References $json_obj, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ getRessource()

ilECSEvent::getRessource ( )

getDescription

Definition at line 57 of file class.ilECSEvent.php.

57 : string
58 {
59 return $this->ressource;
60 }

References $ressource.

Referenced by read().

+ Here is the caller graph for this function:

◆ getRessourceId()

ilECSEvent::getRessourceId ( )

Get ressource id.

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

65 : int
66 {
68 }

References $ressource_id.

Referenced by ilECSEventQueueReader\writeEventToDB().

+ Here is the caller graph for this function:

◆ getRessourceType()

ilECSEvent::getRessourceType ( )

Get ressource type.

Definition at line 74 of file class.ilECSEvent.php.

74 : ?string
75 {
77 }
string $ressource_type

References $ressource_type.

Referenced by ilECSEventQueueReader\writeEventToDB().

+ Here is the caller graph for this function:

◆ getStatus()

ilECSEvent::getStatus ( )

get title

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

49 : string
50 {
51 return $this->status;
52 }

References $status.

Referenced by ilECSEventQueueReader\writeEventToDB().

+ Here is the caller graph for this function:

◆ read()

ilECSEvent::read ( )
private

Read community entries and participants.

Definition at line 83 of file class.ilECSEvent.php.

83 : void
84 {
85 $this->status = $this->json_obj->status;
86 $this->ressource = $this->json_obj->ressource;
87
88 $res_arr = (array) explode('/', $this->getRessource());
89
90 $this->ressource_id = (int) array_pop($res_arr);
91 $this->ressource_type = array_pop($res_arr);
92 }
getRessource()
getDescription

References getRessource(), and ILIAS\Repository\int().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $json_obj

object ilECSEvent::$json_obj
protected

Definition at line 31 of file class.ilECSEvent.php.

Referenced by __construct().

◆ $ressource

string ilECSEvent::$ressource = ''

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

Referenced by getRessource().

◆ $ressource_id

int ilECSEvent::$ressource_id = 0

Definition at line 34 of file class.ilECSEvent.php.

Referenced by getRessourceId().

◆ $ressource_type

string ilECSEvent::$ressource_type = ''

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

Referenced by getRessourceType().

◆ $status

string ilECSEvent::$status = ''

Definition at line 32 of file class.ilECSEvent.php.

Referenced by getStatus().

◆ CREATED

const ilECSEvent::CREATED = 'created'

◆ DESTROYED

const ilECSEvent::DESTROYED = 'destroyed'

◆ NEW_EXPORT

const ilECSEvent::NEW_EXPORT = 'new_export'

Definition at line 29 of file class.ilECSEvent.php.

Referenced by ilECSTaskScheduler\handleEvents().

◆ UPDATED


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