ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
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 {
86 }
87
88
93 public function getRessourceType()
94 {
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?>
read()
Read community entries and participants.
getRessourceType()
Get ressource type.
getStatus()
get title
getRessource()
getDescription
__construct($json_obj)
Constructor.
getRessourceId()
Get ressource id.