ILIAS  release_4-4 Revision
ilECSEvent Class Reference
+ Collaboration diagram for ilECSEvent:

Public Member Functions

 __construct ($json_obj)
 Constructor. More...
 
 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'
 
 $status = ''
 
 $ressource = ''
 
 $ressource_id = 0
 
 $ressource_type = ''
 

Protected Attributes

 $json_obj = null
 

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
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilECSEvent::__construct (   $json_obj)

Constructor.

public

Parameters
objectjson object

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

References $json_obj, and read().

53  {
54  $this->json_obj = $json_obj;
55  $this->read();
56  }
read()
Read community entries and participants.
+ Here is the call graph for this function:

Member Function Documentation

◆ getRessource()

ilECSEvent::getRessource ( )

getDescription

public

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

References $ressource.

Referenced by read().

76  {
77  return $this->ressource;
78  }
+ Here is the caller graph for this function:

◆ getRessourceId()

ilECSEvent::getRessourceId ( )

Get ressource id.

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

References $ressource_id.

Referenced by ilECSEventQueueReader\writeEventToDB().

84  {
85  return $this->ressource_id;
86  }
+ Here is the caller graph for this function:

◆ getRessourceType()

ilECSEvent::getRessourceType ( )

Get ressource type.

Returns
string

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

References $ressource_type.

Referenced by ilECSEventQueueReader\writeEventToDB().

94  {
95  return $this->ressource_type;
96  }
+ Here is the caller graph for this function:

◆ getStatus()

ilECSEvent::getStatus ( )

get title

public

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

References $status.

Referenced by ilECSEventQueueReader\writeEventToDB().

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

◆ read()

ilECSEvent::read ( )
private

Read community entries and participants.

private

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

References getRessource().

Referenced by __construct().

106  {
107  $this->status = $this->json_obj->status;
108  $this->ressource = $this->json_obj->ressource;
109 
110  $res_arr = (array) explode('/',$this->getRessource());
111 
112  $this->ressource_id = array_pop($res_arr);
113  $this->ressource_type = array_pop($res_arr);
114  }
getRessource()
getDescription
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $json_obj

ilECSEvent::$json_obj = null
protected

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

Referenced by __construct().

◆ $ressource

ilECSEvent::$ressource = ''

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

Referenced by getRessource().

◆ $ressource_id

ilECSEvent::$ressource_id = 0

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

Referenced by getRessourceId().

◆ $ressource_type

ilECSEvent::$ressource_type = ''

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

Referenced by getRessourceType().

◆ $status

ilECSEvent::$status = ''

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

Referenced by ilECSTaskScheduler\handleEvents().

◆ UPDATED


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