1
|
|
|
<?php |
2
|
|
|
namespace Aoe\AoeDbSequenzer\Domain\Model; |
3
|
|
|
|
4
|
|
|
/*************************************************************** |
5
|
|
|
* Copyright notice |
6
|
|
|
* |
7
|
|
|
* (c) 2017 AOE GmbH ([email protected]) |
8
|
|
|
* All rights reserved |
9
|
|
|
* |
10
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
11
|
|
|
* free software; you can redistribute it and/or modify |
12
|
|
|
* it under the terms of the GNU General Public License as published by |
13
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
14
|
|
|
* (at your option) any later version. |
15
|
|
|
* |
16
|
|
|
* The GNU General Public License can be found at |
17
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
18
|
|
|
* |
19
|
|
|
* This script is distributed in the hope that it will be useful, |
20
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
21
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22
|
|
|
* GNU General Public License for more details. |
23
|
|
|
* |
24
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
25
|
|
|
***************************************************************/ |
26
|
|
|
|
27
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @package Aoe\AoeDbSequenzer\Domain\Model |
31
|
|
|
* @codeCoverageIgnore |
32
|
|
|
*/ |
33
|
|
|
class OverwriteProtection extends AbstractEntity |
34
|
|
|
{ |
35
|
|
|
/** |
36
|
|
|
* @var integer |
37
|
|
|
*/ |
38
|
|
|
protected $deleted; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var integer |
42
|
|
|
*/ |
43
|
|
|
protected $protectedUid; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
protected $protectedTablename; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var integer |
52
|
|
|
*/ |
53
|
|
|
protected $protectedTime; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var integer |
57
|
|
|
*/ |
58
|
|
|
protected $protectedMode; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return integer |
62
|
|
|
*/ |
63
|
|
|
public function getProtectedUid() |
64
|
|
|
{ |
65
|
|
|
return $this->protectedUid; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @return string |
70
|
|
|
*/ |
71
|
|
|
public function getProtectedTablename() |
72
|
|
|
{ |
73
|
|
|
return $this->protectedTablename; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @param integer $protectedUid |
78
|
|
|
*/ |
79
|
|
|
public function setProtectedUid($protectedUid) |
80
|
|
|
{ |
81
|
|
|
$this->protectedUid = intval($protectedUid); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @param string $protectedTablename |
86
|
|
|
*/ |
87
|
|
|
public function setProtectedTablename($protectedTablename) |
88
|
|
|
{ |
89
|
|
|
$this->protectedTablename = $protectedTablename; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @return integer |
94
|
|
|
*/ |
95
|
|
|
public function getProtectedTime() |
96
|
|
|
{ |
97
|
|
|
return $this->protectedTime; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param integer $protectedTime |
102
|
|
|
*/ |
103
|
|
|
public function setProtectedTime($protectedTime) |
104
|
|
|
{ |
105
|
|
|
$this->protectedTime = intval($protectedTime); |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @return integer |
110
|
|
|
*/ |
111
|
|
|
public function getProtectedMode() |
112
|
|
|
{ |
113
|
|
|
return $this->protectedMode; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @param integer $protectedMode |
118
|
|
|
*/ |
119
|
|
|
public function setProtectedMode($protectedMode) |
120
|
|
|
{ |
121
|
|
|
$this->protectedMode = intval($protectedMode); |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @return integer |
126
|
|
|
*/ |
127
|
|
|
public function getDeleted() |
128
|
|
|
{ |
129
|
|
|
return $this->deleted; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* @param integer $deleted |
134
|
|
|
*/ |
135
|
|
|
public function setDeleted($deleted) |
136
|
|
|
{ |
137
|
|
|
$this->deleted = $deleted; |
138
|
|
|
} |
139
|
|
|
} |
140
|
|
|
|