src/Entity/System/Cms.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Table(name="ps_cms")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\System\CmsRepository")
  10. *
  11. * @deprecated
  12. */
  13. class Cms
  14. {
  15. public const CMS_PAYMENTS = 2;
  16. public const ID_CMS_SHIPMENT_AND_DELIVERY = 3;
  17. public const ID_CMS_WARRANTY = 4;
  18. public const CMS_AFTER_SALE = 5;
  19. public const ID_CMS_GENERAL_PRIVACY_TERMS_AND_CONDITIONS = 7;
  20. public const CMS_DROPSHIPPING_SHOP_ID = 10;
  21. public const CMS_WHOLESALE_PACKS = 34;
  22. public const CMS_WHOLESALER = 34;
  23. public const ID_CMS_TAXES = 39;
  24. public const CMS_HELPCENTER = 44;
  25. public const CMS_MULTICHANNEL_ID = 46;
  26. public const ID_CMS_COOKIES = 49;
  27. public const ID_CMS_PRIVACY_POLICY = 50;
  28. public const CMS_ALIEXPRESS_ID = 63;
  29. public const ID_CMS_AMAZON = 64;
  30. public const CMS_INTEGRATIONS = 65;
  31. public const ID_CMS_SHOPIFY = 66;
  32. public const ID_CMS_WOOCOMMERCE = 67;
  33. public const ID_CMS_EBAY = 68;
  34. public const ID_CMS_CDISCOUNT = 69;
  35. public const ID_CMS_FNAC = 70;
  36. public const ID_CMS_RAKUTEN = 71;
  37. public const ID_CMS_DARTY = 72;
  38. public const ID_CMS_PRESTASHOP = 73;
  39. public const ID_CMS_EPRICE = 75;
  40. public const ID_CMS_RUE_DU_COMMERCE = 76;
  41. public const ID_CMS_CONFORAMA = 77;
  42. public const ID_CMS_CARREFOUR = 78;
  43. public const ID_CMS_MAGENTO = 79;
  44. public const ID_CMS_KAUFLAND = 80;
  45. public const ID_CMS_LEGAL_NOTICE = 101;
  46. public const ID_CMS_LEROY_MERLIN = 107;
  47. public const ID_CMS_ALLEGRO = 108;
  48. public const ID_CMS_WORTEN = 111;
  49. public const ID_CMS_WISH = 113;
  50. public const ID_CMS_CDON = 114;
  51. public const ID_CMS_WIX = 115;
  52. public const ID_CMS_ELECLERC = 116;
  53. /**
  54. * @ORM\Id()
  55. *
  56. * @ORM\GeneratedValue()
  57. *
  58. * @ORM\Column(name="id_cms", type="integer")
  59. */
  60. private $id;
  61. /**
  62. * @ORM\Column(type="integer")
  63. */
  64. private $position;
  65. /**
  66. * @ORM\Column(type="string", length=35, nullable=true)
  67. */
  68. private $tpl;
  69. /**
  70. * @ORM\Column(type="string", name="mainNavLinkActive", length=50, nullable=true)
  71. */
  72. private $mainNavLinkActive;
  73. /**
  74. * @ORM\Column(type="string", length=128, nullable=true)
  75. */
  76. private $facebookImg;
  77. /**
  78. * @ORM\Column(type="string", length=128, nullable=true)
  79. */
  80. private $notes;
  81. /**
  82. * @ORM\Column (type="boolean", options={"default": 0})
  83. */
  84. private bool $legacy;
  85. /**
  86. * @var CmsLanguage[]|Collection
  87. *
  88. * @ORM\OneToMany(targetEntity="App\Entity\System\CmsLanguage", mappedBy="cms")
  89. */
  90. private $translations;
  91. /**
  92. * @ORM\Column (type="boolean", options={"default": 0})
  93. */
  94. private bool $active = true;
  95. public function __construct()
  96. {
  97. $this->translations = new ArrayCollection();
  98. }
  99. public function getId(): ?int
  100. {
  101. return $this->id;
  102. }
  103. public function getPosition(): ?int
  104. {
  105. return $this->position;
  106. }
  107. /**
  108. * @return $this
  109. */
  110. public function setPosition(int $position): self
  111. {
  112. $this->position = $position;
  113. return $this;
  114. }
  115. public function getTpl(): ?string
  116. {
  117. return $this->tpl;
  118. }
  119. /**
  120. * @return $this
  121. */
  122. public function setTpl(?string $tpl): self
  123. {
  124. $this->tpl = $tpl;
  125. return $this;
  126. }
  127. public function getMainNavLinkActive(): ?string
  128. {
  129. return $this->mainNavLinkActive;
  130. }
  131. /**
  132. * @return $this
  133. */
  134. public function setMainNavLinkActive(?string $mainNavLinkActive): self
  135. {
  136. $this->mainNavLinkActive = $mainNavLinkActive;
  137. return $this;
  138. }
  139. public function getFacebookImg(): ?string
  140. {
  141. return $this->facebookImg;
  142. }
  143. /**
  144. * @return $this
  145. */
  146. public function setFacebookImg(?string $facebookImg): self
  147. {
  148. $this->facebookImg = $facebookImg;
  149. return $this;
  150. }
  151. public function getNotes(): ?string
  152. {
  153. return $this->notes;
  154. }
  155. /**
  156. * @return $this
  157. */
  158. public function setNotes(?string $notes): self
  159. {
  160. $this->notes = $notes;
  161. return $this;
  162. }
  163. /**
  164. * @return CmsLanguage[]|Collection
  165. */
  166. public function getTranslations()
  167. {
  168. return $this->translations;
  169. }
  170. /**
  171. * @param CmsLanguage[]|Collection $translations
  172. *
  173. * @return Cms
  174. */
  175. public function setTranslations($translations)
  176. {
  177. $this->translations = $translations;
  178. return $this;
  179. }
  180. public function addTranslation(CmsLanguage $translation): self
  181. {
  182. if (!$this->translations->contains($translation)) {
  183. $this->translations->add($translation);
  184. }
  185. return $this;
  186. }
  187. /**
  188. * @return mixed
  189. */
  190. public function getLegacy()
  191. {
  192. return $this->legacy;
  193. }
  194. /**
  195. * @param mixed $legacy
  196. */
  197. public function setLegacy($legacy): void
  198. {
  199. $this->legacy = $legacy;
  200. }
  201. public function isActive(): bool
  202. {
  203. return $this->active;
  204. }
  205. public function setActive(bool $active): Cms
  206. {
  207. $this->active = $active;
  208. return $this;
  209. }
  210. }