ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSearchCommandQueueElement.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
29{
30 public const UPDATE = 'update';
31 public const DELETE = 'delete';
32 public const CREATE = 'create';
33 public const RESET = 'reset';
34
35 private int $obj_id;
36 private string $obj_type;
37 private string $command;
39 private bool $finished;
40
44 public function setObjId(int $a_id): void
45 {
46 $this->obj_id = $a_id;
47 }
48
52 public function getObjId(): int
53 {
54 return $this->obj_id;
55 }
56
60 public function setObjType(string $a_type): void
61 {
62 $this->obj_type = $a_type;
63 }
64
68 public function getObjType(): string
69 {
70 return $this->obj_type;
71 }
72
76 public function setCommand(string $a_command): void
77 {
78 $this->command = $a_command;
79 }
80
84 public function getCommand(): string
85 {
86 return $this->command;
87 }
88
92 public function setLastUpdate(ilDateTime $date_time): void
93 {
94 $this->last_update = $date_time;
95 }
96
100 public function getLastUpdate(): ?ilDateTime
101 {
102 return is_object($this->last_update) ? $this->last_update : null;
103 }
104
108 public function setFinished(bool $a_finished): void
109 {
110 $this->finished = $a_finished;
111 }
112
116 public function getFinished(): bool
117 {
118 return $this->finished;
119 }
120}
@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