<?php
/**
* Created by PhpStorm.
* User: Toni Peral <toniperal.a4b@gmail.com>
* Date: 4/11/20
* Time: 11:55.
*/
namespace App\Entity\System;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ps_cms")
*
* @ORM\Entity(repositoryClass="App\Repository\System\CmsRepository")
*/
class Cms
{
public const CMS_PAYMENTS = 2;
public const CMS_SHIPPING = 3;
public const CMS_AFTER_SALE = 5;
public const ID_CMS_GENERAL_CONDITIONS = 7;
public const SHOP_B2B = 8;
public const CMS_DROPSHIPPING = 9;
public const CMS_DROPSHIPPING_SHOP_ID = 10;
public const ID_CMS_ABOUT_US = 14;
public const CMS_TOP_SALES = 25;
public const CMS_WHOLESALE_PACKS = 34;
public const CMS_NEWS = 31;
public const CMS_WHOLESALER = 34;
public const CMS_STOCK_LOCK = 36;
public const CMS_CSVXML = 37;
public const CMS_TAXES = 39;
public const CMS_SINCRONICE_ID = 41;
public const CMS_API = 42;
public const CMS_HELPCENTER = 44;
public const CMS_ALL_IN_ONE_SUPPLIER = 45;
public const CMS_MULTICHANNEL_ID = 46;
public const ID_CMS_COOKIES = 49;
public const ID_CMS_PRIVACY = 50;
public const ID_CMS_REWARDS_CATALOGUE_SUPPLIER = 61;
public const CMS_MIP_DEMO = 62;
public const CMS_ALIEXPRESS_ID = 63;
public const ID_CMS_AMAZON = 64;
public const CMS_INTEGRATIONS = 65;
public const ID_CMS_SHOPIFY = 66;
public const ID_CMS_WOOCOMMERCE = 67;
public const ID_CMS_EBAY = 68;
public const ID_CMS_CDISCOUNT = 69;
public const ID_CMS_FNAC = 70;
public const ID_CMS_RAKUTEN = 71;
public const ID_CMS_DARTY = 72;
public const ID_CMS_PRESTASHOP = 73;
public const ID_CMS_EPRICE = 75;
public const ID_CMS_RUE_DU_COMMERCE = 76;
public const ID_CMS_CONFORAMA = 77;
public const ID_CMS_CARREFOUR = 78;
public const ID_CMS_MAGENTO = 79;
public const ID_CMS_KAUFLAND = 80;
public const ID_CMS_MARKETING_DOWNLOADS = 81;
public const ID_CMS_WINNING_PRODUCTS = 82;
public const ID_CMS_SOCIAL_SELLING = 83;
public const ID_CMS_WORK_WITH_US = 84;
public const ID_CMS_TECHNOLOGY = 85;
public const ID_CMS_WHAT_IS = 86;
public const ID_CMS_TEAM = 87;
public const ID_CMS_HISTORY = 88;
public const ID_CMS_DROPSHIPPING_SOLUTIONS = 89;
public const ID_CMS_BRAND_SOLUTIONS = 90;
public const ID_CMS_TECHNOLOGY_DROPSHIPPING = 91;
public const ID_CMS_ACADEMY = 92;
public const ID_CMS_BLOG = 93;
public const ID_CMS_B2B_SHOP = 96;
public const ID_CMS_AFFILIATE = 97;
public const ID_CMS_MEDIA_KIT = 99;
public const ID_CMS_AWARDS = 100;
public const ID_CMS_LEGAL_NOTICE = 101;
public const ID_CMS_REFURBISHED = 102;
public const ID_CMS_UNIVERSITY = 103;
public const ID_CMS_UNIVERSITY_SOCIAL_SELLING = 104;
public const ID_CMS_UNIVERSITY_MARKETPLACES = 105;
public const ID_CMS_UNIVERSITY_ECOMMERCE = 106;
public const ID_CMS_LEROY_MERLIN = 107;
public const ID_CMS_ALLEGRO = 108;
public const ID_CMS_DROPSHIPPING_MARKETPLACES = 109;
public const ID_CMS_PCCOMPONENTES = 110;
public const ID_CMS_WORTEN = 111;
public const ID_CMS_DROPSHIPPING_ECOMMERCE = 112;
public const ID_CMS_WISH = 113;
public const ID_CMS_CDON = 114;
public const ID_CMS_WIX = 115;
public const ID_CMS_ELECLERC = 116;
public const ID_CMS_ACADEMY_LANDING = 117;
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(name="id_cms", type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $idCmsBlock;
/**
* @ORM\Column(type="integer")
*/
private $position;
/**
* @ORM\Column(type="string", length=35, nullable=true)
*/
private $tpl;
/**
* @ORM\Column(type="string", name="mainNavLinkActive", length=50, nullable=true)
*/
private $mainNavLinkActive;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $facebookImg;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $notes;
/**
* @ORM\Column (type="boolean")
*/
private bool $legacy;
/**
* @var CmsLanguage[]|Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\System\CmsLanguage", mappedBy="cms")
*/
private $translations;
/**
* @ORM\Column (type="boolean")
*/
private bool $active = true;
public function __construct()
{
$this->translations = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getIdCmsBlock(): ?int
{
return $this->idCmsBlock;
}
/**
* @return $this
*/
public function setIdCmsBlock(int $idCmsBlock): self
{
$this->idCmsBlock = $idCmsBlock;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
/**
* @return $this
*/
public function setPosition(int $position): self
{
$this->position = $position;
return $this;
}
public function getTpl(): ?string
{
return $this->tpl;
}
/**
* @return $this
*/
public function setTpl(?string $tpl): self
{
$this->tpl = $tpl;
return $this;
}
public function getMainNavLinkActive(): ?string
{
return $this->mainNavLinkActive;
}
/**
* @return $this
*/
public function setMainNavLinkActive(?string $mainNavLinkActive): self
{
$this->mainNavLinkActive = $mainNavLinkActive;
return $this;
}
public function getFacebookImg(): ?string
{
return $this->facebookImg;
}
/**
* @return $this
*/
public function setFacebookImg(?string $facebookImg): self
{
$this->facebookImg = $facebookImg;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
/**
* @return $this
*/
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
/**
* @return CmsLanguage[]|Collection
*/
public function getTranslations()
{
return $this->translations;
}
/**
* @param CmsLanguage[]|Collection $translations
*
* @return Cms
*/
public function setTranslations($translations)
{
$this->translations = $translations;
return $this;
}
/**
* @return mixed
*/
public function getLegacy()
{
return $this->legacy;
}
/**
* @param mixed $legacy
*/
public function setLegacy($legacy): void
{
$this->legacy = $legacy;
}
public function isActive(): bool
{
return $this->active;
}
public function setActive(bool $active): Cms
{
$this->active = $active;
return $this;
}
}