ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilECSEvent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
24
class
ilECSEvent
25
{
26
public
const
CREATED
=
'created'
;
27
public
const
UPDATED
=
'updated'
;
28
public
const
DESTROYED
=
'destroyed'
;
29
public
const
NEW_EXPORT
=
'new_export'
;
30
31
protected
object
$json_obj
;
32
public
string
$status
=
''
;
33
public
string
$ressource
=
''
;
34
public
int
$ressource_id
= 0;
35
public
?
string
$ressource_type
=
''
;
36
40
public
function
__construct
($json_obj)
41
{
42
$this->json_obj =
$json_obj
;
43
$this->
read
();
44
}
45
49
public
function
getStatus
(): string
50
{
51
return
$this->status
;
52
}
53
57
public
function
getRessource
(): string
58
{
59
return
$this->ressource
;
60
}
61
65
public
function
getRessourceId
():
int
66
{
67
return
$this->ressource_id
;
68
}
69
70
74
public
function
getRessourceType
(): ?string
75
{
76
return
$this->ressource_type
;
77
}
78
79
83
private
function
read
(): 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
}
93
}
ilECSEvent\getStatus
getStatus()
get title
Definition:
class.ilECSEvent.php:49
ilECSEvent\$json_obj
object $json_obj
Definition:
class.ilECSEvent.php:31
ilECSEvent\getRessourceType
getRessourceType()
Get ressource type.
Definition:
class.ilECSEvent.php:74
ilECSEvent\read
read()
Read community entries and participants.
Definition:
class.ilECSEvent.php:83
ilECSEvent
Definition:
class.ilECSEvent.php:24
ilECSEvent\$ressource
string $ressource
Definition:
class.ilECSEvent.php:33
ilECSEvent\CREATED
const CREATED
Definition:
class.ilECSEvent.php:26
ilECSEvent\UPDATED
const UPDATED
Definition:
class.ilECSEvent.php:27
ilECSEvent\getRessourceId
getRessourceId()
Get ressource id.
Definition:
class.ilECSEvent.php:65
ilECSEvent\__construct
__construct($json_obj)
Definition:
class.ilECSEvent.php:40
ilECSEvent\$ressource_id
int $ressource_id
Definition:
class.ilECSEvent.php:34
ilECSEvent\$status
string $status
Definition:
class.ilECSEvent.php:32
ilECSEvent\NEW_EXPORT
const NEW_EXPORT
Definition:
class.ilECSEvent.php:29
ilECSEvent\getRessource
getRessource()
getDescription
Definition:
class.ilECSEvent.php:57
ilECSEvent\$ressource_type
string $ressource_type
Definition:
class.ilECSEvent.php:35
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilECSEvent\DESTROYED
const DESTROYED
Definition:
class.ilECSEvent.php:28
components
ILIAS
WebServices
ECS
classes
class.ilECSEvent.php
Generated on Sun Aug 31 2025 23:04:21 for ILIAS by
1.8.13 (using
Doxyfile
)