ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSearchCommandQueueElement.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 
34 {
35  const UPDATE = 'update';
36  const DELETE = 'delete';
37  const CREATE = 'create';
38  const RESET = 'reset';
39 
40  private $obj_id;
41  private $obj_type;
42  private $command;
43  private $last_update;
44  private $finished;
45 
49  public function __construct()
50  {
51 
52  }
53 
57  public function setObjId($a_id)
58  {
59  $this->obj_id = $a_id;
60  }
61 
65  public function getObjId()
66  {
67  return $this->obj_id;
68  }
69 
73  public function setObjType($a_type)
74  {
75  $this->obj_type = $a_type;
76  }
77 
81  public function getObjType()
82  {
83  return $this->obj_type;
84  }
85 
89  public function setCommand($a_command)
90  {
91  $this->command = $a_command;
92  }
93 
97  public function getCommand()
98  {
99  return $this->command;
100  }
101 
105  public function setLastUpdate(ilDateTime $date_time)
106  {
107  $this->last_update = $date_time;
108  }
109 
113  public function getLastUpdate()
114  {
115  return is_object($this->last_update) ? $this->last_update : null;
116  }
117 
121  public function setFinished($a_finished)
122  {
123  $this->finished = $a_finished;
124  }
125 
129  public function getFinished()
130  {
131  return (bool) $this->finished;
132  }
133 }
134 ?>