ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
?>
Services
WebServices
ECS
classes
class.ilECSEvent.php
Generated on Wed Apr 27 2016 20:02:05 for ILIAS by
1.8.1.2 (using
Doxyfile
)