ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilECSEvent.php
Go to the documentation of this file.
1
<?
php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
32
class
ilECSEvent
33
{
34
const
CREATED
=
'created'
;
35
const
UPDATED
=
'updated'
;
36
const
DESTROYED
=
'destroyed'
;
37
const
NEW_EXPORT
=
'new_export'
;
38
39
protected
$json_obj
= null;
40
public
$status
=
''
;
41
public
$ressource
=
''
;
42
public
$ressource_id
= 0;
43
public
$ressource_type
=
''
;
44
52
public
function
__construct
(
$json_obj
)
53
{
54
$this->json_obj =
$json_obj
;
55
$this->
read
();
56
}
57
64
public
function
getStatus
()
65
{
66
return
$this->status
;
67
}
68
75
public
function
getRessource
()
76
{
77
return
$this->ressource
;
78
}
79
83
public
function
getRessourceId
()
84
{
85
return
$this->ressource_id
;
86
}
87
88
93
public
function
getRessourceType
()
94
{
95
return
$this->ressource_type
;
96
}
97
98
105
private
function
read
()
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
}
115
}
116
?>
ilECSEvent\$ressource
$ressource
Definition:
class.ilECSEvent.php:41
ilECSEvent\getStatus
getStatus()
get title
Definition:
class.ilECSEvent.php:64
ilECSEvent\getRessourceType
getRessourceType()
Get ressource type.
Definition:
class.ilECSEvent.php:93
ilECSEvent\read
read()
Read community entries and participants.
Definition:
class.ilECSEvent.php:105
ilECSEvent
Definition:
class.ilECSEvent.php:32
ilECSEvent\CREATED
const CREATED
Definition:
class.ilECSEvent.php:34
ilECSEvent\UPDATED
const UPDATED
Definition:
class.ilECSEvent.php:35
ilECSEvent\$ressource_type
$ressource_type
Definition:
class.ilECSEvent.php:43
ilECSEvent\$json_obj
$json_obj
Definition:
class.ilECSEvent.php:39
ilECSEvent\getRessourceId
getRessourceId()
Get ressource id.
Definition:
class.ilECSEvent.php:83
ilECSEvent\__construct
__construct($json_obj)
Constructor.
Definition:
class.ilECSEvent.php:52
ilECSEvent\$ressource_id
$ressource_id
Definition:
class.ilECSEvent.php:42
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilECSEvent\NEW_EXPORT
const NEW_EXPORT
Definition:
class.ilECSEvent.php:37
ilECSEvent\getRessource
getRessource()
getDescription
Definition:
class.ilECSEvent.php:75
php
ilECSEvent\$status
$status
Definition:
class.ilECSEvent.php:40
ilECSEvent\DESTROYED
const DESTROYED
Definition:
class.ilECSEvent.php:36
Services
WebServices
ECS
classes
class.ilECSEvent.php
Generated on Fri Jan 24 2025 19:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)