ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
56  public function setObjId($a_id)
57  {
58  $this->obj_id = $a_id;
59  }
60 
64  public function getObjId()
65  {
66  return $this->obj_id;
67  }
68 
72  public function setObjType($a_type)
73  {
74  $this->obj_type = $a_type;
75  }
76 
80  public function getObjType()
81  {
82  return $this->obj_type;
83  }
84 
88  public function setCommand($a_command)
89  {
90  $this->command = $a_command;
91  }
92 
96  public function getCommand()
97  {
98  return $this->command;
99  }
100 
104  public function setLastUpdate(ilDateTime $date_time)
105  {
106  $this->last_update = $date_time;
107  }
108 
112  public function getLastUpdate()
113  {
114  return is_object($this->last_update) ? $this->last_update : null;
115  }
116 
120  public function setFinished($a_finished)
121  {
122  $this->finished = $a_finished;
123  }
124 
128  public function getFinished()
129  {
130  return (bool) $this->finished;
131  }
132 }
Represents an entry for the search command queue.
setLastUpdate(ilDateTime $date_time)
set last_update
$a_type
Definition: workflow.php:92
Date and time handling