ILIAS  release_8 Revision v8.23
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 23 of file class.ilECSEvent.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSEvent::__construct (   $json_obj)
Parameters
objectjson object

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

References $json_obj, and read().

40  {
41  $this->json_obj = $json_obj;
42  $this->read();
43  }
read()
Read community entries and participants.
+ Here is the call graph for this function:

Member Function Documentation

◆ getRessource()

ilECSEvent::getRessource ( )

getDescription

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

References $ressource.

Referenced by read().

56  : string
57  {
58  return $this->ressource;
59  }
+ Here is the caller graph for this function:

◆ getRessourceId()

ilECSEvent::getRessourceId ( )

Get ressource id.

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

References $ressource_id.

Referenced by ilECSEventQueueReader\writeEventToDB().

64  : int
65  {
66  return $this->ressource_id;
67  }
+ Here is the caller graph for this function:

◆ getRessourceType()

ilECSEvent::getRessourceType ( )

Get ressource type.

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

References $ressource_type.

Referenced by ilECSEventQueueReader\writeEventToDB().

73  : ?string
74  {
75  return $this->ressource_type;
76  }
string $ressource_type
+ Here is the caller graph for this function:

◆ getStatus()

ilECSEvent::getStatus ( )

get title

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

References $status.

Referenced by ilECSEventQueueReader\writeEventToDB().

48  : string
49  {
50  return $this->status;
51  }
+ Here is the caller graph for this function:

◆ read()

ilECSEvent::read ( )
private

Read community entries and participants.

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

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

Referenced by __construct().

82  : void
83  {
84  $this->status = $this->json_obj->status;
85  $this->ressource = $this->json_obj->ressource;
86 
87  $res_arr = (array) explode('/', $this->getRessource());
88 
89  $this->ressource_id = (int) array_pop($res_arr);
90  $this->ressource_type = array_pop($res_arr);
91  }
getRessource()
getDescription
+ 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 30 of file class.ilECSEvent.php.

Referenced by __construct().

◆ $ressource

string ilECSEvent::$ressource = ''

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

Referenced by getRessource().

◆ $ressource_id

int ilECSEvent::$ressource_id = 0

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

Referenced by getRessourceId().

◆ $ressource_type

string ilECSEvent::$ressource_type = ''

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

Referenced by getRessourceType().

◆ $status

string ilECSEvent::$status = ''

Definition at line 31 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 28 of file class.ilECSEvent.php.

Referenced by ilECSTaskScheduler\handleEvents().

◆ UPDATED


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