ILIAS  release_8 Revision v8.24
class.ilSearchCommandQueueElement.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/*
5 +-----------------------------------------------------------------------------+
6 | ILIAS open source |
7 +-----------------------------------------------------------------------------+
8 | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
9 | |
10 | This program is free software; you can redistribute it and/or |
11 | modify it under the terms of the GNU General Public License |
12 | as published by the Free Software Foundation; either version 2 |
13 | of the License, or (at your option) any later version. |
14 | |
15 | This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | GNU General Public License for more details. |
19 | |
20 | You should have received a copy of the GNU General Public License |
21 | along with this program; if not, write to the Free Software |
22 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 +-----------------------------------------------------------------------------+
24*/
25
35{
36 public const UPDATE = 'update';
37 public const DELETE = 'delete';
38 public const CREATE = 'create';
39 public const RESET = 'reset';
40
41 private int $obj_id;
42 private string $obj_type;
43 private string $command;
45 private bool $finished;
46
50 public function setObjId(int $a_id): void
51 {
52 $this->obj_id = $a_id;
53 }
54
58 public function getObjId(): int
59 {
60 return $this->obj_id;
61 }
62
66 public function setObjType(string $a_type): void
67 {
68 $this->obj_type = $a_type;
69 }
70
74 public function getObjType(): string
75 {
76 return $this->obj_type;
77 }
78
82 public function setCommand(string $a_command): void
83 {
84 $this->command = $a_command;
85 }
86
90 public function getCommand(): string
91 {
92 return $this->command;
93 }
94
98 public function setLastUpdate(ilDateTime $date_time): void
99 {
100 $this->last_update = $date_time;
101 }
102
106 public function getLastUpdate(): ?ilDateTime
107 {
108 return is_object($this->last_update) ? $this->last_update : null;
109 }
110
114 public function setFinished(bool $a_finished): void
115 {
116 $this->finished = $a_finished;
117 }
118
122 public function getFinished(): bool
123 {
124 return $this->finished;
125 }
126}
@classDescription Date and time handling
Represents an entry for the search command queue.
setCommand(string $a_command)
set command
setLastUpdate(ilDateTime $date_time)
set last_update