src/Entity/System/Cms.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: Toni Peral <toniperal.a4b@gmail.com>
  5.  * Date: 4/11/20
  6.  * Time: 11:55.
  7.  */
  8. namespace App\Entity\System;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @ORM\Table(name="ps_cms")
  14.  *
  15.  * @ORM\Entity(repositoryClass="App\Repository\System\CmsRepository")
  16.  */
  17. class Cms
  18. {
  19.     public const CMS_PAYMENTS 2;
  20.     public const CMS_SHIPPING 3;
  21.     public const CMS_AFTER_SALE 5;
  22.     public const ID_CMS_GENERAL_CONDITIONS 7;
  23.     public const SHOP_B2B 8;
  24.     public const CMS_DROPSHIPPING 9;
  25.     public const CMS_DROPSHIPPING_SHOP_ID 10;
  26.     public const ID_CMS_ABOUT_US 14;
  27.     public const CMS_TOP_SALES 25;
  28.     public const CMS_WHOLESALE_PACKS 34;
  29.     public const CMS_NEWS 31;
  30.     public const CMS_WHOLESALER 34;
  31.     public const CMS_STOCK_LOCK 36;
  32.     public const CMS_CSVXML 37;
  33.     public const CMS_TAXES 39;
  34.     public const CMS_SINCRONICE_ID 41;
  35.     public const CMS_API 42;
  36.     public const CMS_HELPCENTER 44;
  37.     public const CMS_ALL_IN_ONE_SUPPLIER 45;
  38.     public const CMS_MULTICHANNEL_ID 46;
  39.     public const ID_CMS_COOKIES 49;
  40.     public const ID_CMS_PRIVACY 50;
  41.     public const ID_CMS_REWARDS_CATALOGUE_SUPPLIER 61;
  42.     public const CMS_MIP_DEMO 62;
  43.     public const CMS_ALIEXPRESS_ID 63;
  44.     public const ID_CMS_AMAZON 64;
  45.     public const CMS_INTEGRATIONS 65;
  46.     public const ID_CMS_SHOPIFY 66;
  47.     public const ID_CMS_WOOCOMMERCE 67;
  48.     public const ID_CMS_EBAY 68;
  49.     public const ID_CMS_CDISCOUNT 69;
  50.     public const ID_CMS_FNAC 70;
  51.     public const ID_CMS_RAKUTEN 71;
  52.     public const ID_CMS_DARTY 72;
  53.     public const ID_CMS_PRESTASHOP 73;
  54.     public const ID_CMS_EPRICE 75;
  55.     public const ID_CMS_RUE_DU_COMMERCE 76;
  56.     public const ID_CMS_CONFORAMA 77;
  57.     public const ID_CMS_CARREFOUR 78;
  58.     public const ID_CMS_MAGENTO 79;
  59.     public const ID_CMS_KAUFLAND 80;
  60.     public const ID_CMS_MARKETING_DOWNLOADS 81;
  61.     public const ID_CMS_WINNING_PRODUCTS 82;
  62.     public const ID_CMS_SOCIAL_SELLING 83;
  63.     public const ID_CMS_WORK_WITH_US 84;
  64.     public const ID_CMS_TECHNOLOGY 85;
  65.     public const ID_CMS_WHAT_IS 86;
  66.     public const ID_CMS_TEAM 87;
  67.     public const ID_CMS_HISTORY 88;
  68.     public const ID_CMS_DROPSHIPPING_SOLUTIONS 89;
  69.     public const ID_CMS_BRAND_SOLUTIONS 90;
  70.     public const ID_CMS_TECHNOLOGY_DROPSHIPPING 91;
  71.     public const ID_CMS_ACADEMY 92;
  72.     public const ID_CMS_BLOG 93;
  73.     public const ID_CMS_B2B_SHOP 96;
  74.     public const ID_CMS_AFFILIATE 97;
  75.     public const ID_CMS_MEDIA_KIT 99;
  76.     public const ID_CMS_AWARDS 100;
  77.     public const ID_CMS_LEGAL_NOTICE 101;
  78.     public const ID_CMS_REFURBISHED 102;
  79.     public const ID_CMS_UNIVERSITY 103;
  80.     public const ID_CMS_UNIVERSITY_SOCIAL_SELLING 104;
  81.     public const ID_CMS_UNIVERSITY_MARKETPLACES 105;
  82.     public const ID_CMS_UNIVERSITY_ECOMMERCE 106;
  83.     public const ID_CMS_LEROY_MERLIN 107;
  84.     public const ID_CMS_ALLEGRO 108;
  85.     public const ID_CMS_DROPSHIPPING_MARKETPLACES 109;
  86.     public const ID_CMS_PCCOMPONENTES 110;
  87.     public const ID_CMS_WORTEN 111;
  88.     public const ID_CMS_DROPSHIPPING_ECOMMERCE 112;
  89.     public const ID_CMS_WISH 113;
  90.     public const ID_CMS_CDON 114;
  91.     public const ID_CMS_WIX 115;
  92.     public const ID_CMS_ELECLERC 116;
  93.     public const ID_CMS_ACADEMY_LANDING 117;
  94.     /**
  95.      * @ORM\Id()
  96.      *
  97.      * @ORM\GeneratedValue()
  98.      *
  99.      * @ORM\Column(name="id_cms", type="integer")
  100.      */
  101.     private $id;
  102.     /**
  103.      * @ORM\Column(type="integer")
  104.      */
  105.     private $idCmsBlock;
  106.     /**
  107.      * @ORM\Column(type="integer")
  108.      */
  109.     private $position;
  110.     /**
  111.      * @ORM\Column(type="string", length=35, nullable=true)
  112.      */
  113.     private $tpl;
  114.     /**
  115.      * @ORM\Column(type="string", name="mainNavLinkActive", length=50, nullable=true)
  116.      */
  117.     private $mainNavLinkActive;
  118.     /**
  119.      * @ORM\Column(type="string", length=128, nullable=true)
  120.      */
  121.     private $facebookImg;
  122.     /**
  123.      * @ORM\Column(type="string", length=128, nullable=true)
  124.      */
  125.     private $notes;
  126.     /**
  127.      * @ORM\Column (type="boolean")
  128.      */
  129.     private bool $legacy;
  130.     /**
  131.      * @var CmsLanguage[]|Collection
  132.      *
  133.      * @ORM\OneToMany(targetEntity="App\Entity\System\CmsLanguage", mappedBy="cms")
  134.      */
  135.     private $translations;
  136.     /**
  137.      * @ORM\Column (type="boolean")
  138.      */
  139.     private bool $active true;
  140.     public function __construct()
  141.     {
  142.         $this->translations = new ArrayCollection();
  143.     }
  144.     public function getId(): ?int
  145.     {
  146.         return $this->id;
  147.     }
  148.     public function getIdCmsBlock(): ?int
  149.     {
  150.         return $this->idCmsBlock;
  151.     }
  152.     /**
  153.      * @return $this
  154.      */
  155.     public function setIdCmsBlock(int $idCmsBlock): self
  156.     {
  157.         $this->idCmsBlock $idCmsBlock;
  158.         return $this;
  159.     }
  160.     public function getPosition(): ?int
  161.     {
  162.         return $this->position;
  163.     }
  164.     /**
  165.      * @return $this
  166.      */
  167.     public function setPosition(int $position): self
  168.     {
  169.         $this->position $position;
  170.         return $this;
  171.     }
  172.     public function getTpl(): ?string
  173.     {
  174.         return $this->tpl;
  175.     }
  176.     /**
  177.      * @return $this
  178.      */
  179.     public function setTpl(?string $tpl): self
  180.     {
  181.         $this->tpl $tpl;
  182.         return $this;
  183.     }
  184.     public function getMainNavLinkActive(): ?string
  185.     {
  186.         return $this->mainNavLinkActive;
  187.     }
  188.     /**
  189.      * @return $this
  190.      */
  191.     public function setMainNavLinkActive(?string $mainNavLinkActive): self
  192.     {
  193.         $this->mainNavLinkActive $mainNavLinkActive;
  194.         return $this;
  195.     }
  196.     public function getFacebookImg(): ?string
  197.     {
  198.         return $this->facebookImg;
  199.     }
  200.     /**
  201.      * @return $this
  202.      */
  203.     public function setFacebookImg(?string $facebookImg): self
  204.     {
  205.         $this->facebookImg $facebookImg;
  206.         return $this;
  207.     }
  208.     public function getNotes(): ?string
  209.     {
  210.         return $this->notes;
  211.     }
  212.     /**
  213.      * @return $this
  214.      */
  215.     public function setNotes(?string $notes): self
  216.     {
  217.         $this->notes $notes;
  218.         return $this;
  219.     }
  220.     /**
  221.      * @return CmsLanguage[]|Collection
  222.      */
  223.     public function getTranslations()
  224.     {
  225.         return $this->translations;
  226.     }
  227.     /**
  228.      * @param CmsLanguage[]|Collection $translations
  229.      *
  230.      * @return Cms
  231.      */
  232.     public function setTranslations($translations)
  233.     {
  234.         $this->translations $translations;
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return mixed
  239.      */
  240.     public function getLegacy()
  241.     {
  242.         return $this->legacy;
  243.     }
  244.     /**
  245.      * @param mixed $legacy
  246.      */
  247.     public function setLegacy($legacy): void
  248.     {
  249.         $this->legacy $legacy;
  250.     }
  251.     public function isActive(): bool
  252.     {
  253.         return $this->active;
  254.     }
  255.     public function setActive(bool $active): Cms
  256.     {
  257.         $this->active $active;
  258.         return $this;
  259.     }
  260. }