ActivePage.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?php
  2. declare(strict_types=1);
  3. namespace Meramo\Pagemanager\Domain\Model;
  4. /**
  5. * This file is part of the "ABI2021 Page Manager" Extension for TYPO3 CMS.
  6. *
  7. * For the full copyright and license information, please read the
  8. * LICENSE.txt file that was distributed with this source code.
  9. *
  10. * (c) 2023 Meramo Developer <development@meramo.de>, Meramo Verlag GmbH
  11. */
  12. /**
  13. * Active Page Online
  14. */
  15. class ActivePage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
  16. {
  17. /**
  18. * uid
  19. *
  20. * @var int
  21. */
  22. protected $uid;
  23. /**
  24. * startDate
  25. *
  26. * @var int
  27. */
  28. protected $starttime;
  29. /**
  30. * startDate
  31. *
  32. * @var int
  33. */
  34. protected $endtime;
  35. /**
  36. * Page title
  37. *
  38. * @var string
  39. * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
  40. */
  41. protected $title = '';
  42. /**
  43. * page category
  44. *
  45. * @var string
  46. * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
  47. */
  48. protected $category = '';
  49. /**
  50. * Main topic
  51. *
  52. * @var string
  53. * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
  54. */
  55. protected $roof = '';
  56. /**
  57. * Page Creator
  58. *
  59. * @var string
  60. * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
  61. */
  62. protected $creator = '';
  63. /**
  64. * Creator full name
  65. *
  66. * @var string
  67. */
  68. protected $fullName = '';
  69. /**
  70. * sets the Uid
  71. *
  72. * @return void
  73. */
  74. public function setUid(int $uid)
  75. {
  76. $this->uid = $uid;
  77. }
  78. /**
  79. * sets the starttime
  80. *
  81. * @return void
  82. */
  83. public function setStarttime(int $starttime)
  84. {
  85. $this->starttime = $starttime;
  86. }
  87. /**
  88. * Returns the starttime
  89. *
  90. * @return int starttime
  91. */
  92. public function getStarttime()
  93. {
  94. return $this->starttime;
  95. }
  96. /**
  97. * sets the endttime
  98. *
  99. * @return void
  100. */
  101. public function setEndtime(int $endtime)
  102. {
  103. $this->endtime = $endtime;
  104. }
  105. /**
  106. * Returns the endtime
  107. *
  108. * @return int endtime
  109. */
  110. public function getEndtime()
  111. {
  112. return $this->endtime;
  113. }
  114. /**
  115. * Returns the title
  116. *
  117. * @return string $title
  118. */
  119. public function getTitle()
  120. {
  121. return $this->title;
  122. }
  123. /**
  124. * Sets the title
  125. *
  126. * @param string $title
  127. * @return void
  128. */
  129. public function setTitle(string $title)
  130. {
  131. $this->title = $title;
  132. }
  133. /**
  134. * Returns the category
  135. *
  136. * @return string $category
  137. */
  138. public function getCategory()
  139. {
  140. return $this->category;
  141. }
  142. /**
  143. * Sets the category
  144. *
  145. * @param string $category
  146. * @return void
  147. */
  148. public function setCategory(string $category)
  149. {
  150. $this->category = $category;
  151. }
  152. /**
  153. * Returns the roof
  154. *
  155. * @return string $roof
  156. */
  157. public function getRoof()
  158. {
  159. return $this->roof;
  160. }
  161. /**
  162. * Sets the roof
  163. *
  164. * @param string $roof
  165. * @return void
  166. */
  167. public function setRoof(string $roof)
  168. {
  169. $this->roof = $roof;
  170. }
  171. /**
  172. * Returns the creator
  173. *
  174. * @return string $creator
  175. */
  176. public function getCreator()
  177. {
  178. return $this->creator;
  179. }
  180. /**
  181. * Sets the creator
  182. *
  183. * @param string $creator
  184. * @return void
  185. */
  186. public function setCreator(string $creator)
  187. {
  188. $this->creator = $creator;
  189. }
  190. /**
  191. * Returns the fullName
  192. *
  193. * @return string $fullName
  194. */
  195. public function getFullName()
  196. {
  197. return $this->fullName;
  198. }
  199. /**
  200. * Sets the fullName
  201. *
  202. * @param string $fullName
  203. * @return void
  204. */
  205. public function setFullName(string $fullName)
  206. {
  207. $this->fullName = $fullName;
  208. }
  209. }