src/Entity/System/Cms.php line 19

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