src/Entity/WebPage.php line 25

Open in your IDE?
  1. <?php
  2. /**
  3.  * Product class represents model of WebPage entity
  4.  *
  5.  * $Project: Alliancemarkets2 $
  6.  * $Id$
  7.  *
  8.  * @package alliancemarkets2
  9.  * @author George Matyas <webexciter@yahoo.com>
  10.  * @version $Revision$
  11.  */
  12. namespace App\Entity;
  13. use Doctrine\DBAL\Types\Types;
  14. use Doctrine\ORM\Mapping as ORM;
  15. use Gedmo\Mapping\Annotation as Gedmo;
  16. use Gedmo\Translatable\Translatable;
  17. /**
  18.  * @ORM\Entity(repositoryClass="App\EntityRepo\WebPageRepo")
  19.  * @ORM\Table(name="web_page")
  20.  * @Gedmo\TranslationEntity(class="App\Entity\WebPageTranslation")
  21.  */
  22. class WebPage implements Translatable
  23. {
  24.     const PAGETYPE = array('PAGETYPE_COMMON' => 0'PAGETYPE_HOMEPAGE' => 1'PAGETYPE_HEADER' => 2'PAGETYPE_FOOTER' => 3'PAGETYPE_EMAIL_ORDER' => 4'PAGETYPE_EMAIL_REGISTER' => 5'PAGETYPE_LEFT_COLUMN' => 6'PAGETYPE_RIGHT_COLUMN' => 7);
  25.     
  26.     /**
  27.      * @ORM\Column(type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */ 
  31.     protected $webPageId=0;
  32.     /**
  33.      * @Gedmo\Translatable
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     protected $webPageName;
  37.     
  38.     /**
  39.      * @Gedmo\Translatable       
  40.      * @ORM\Column(type="text", nullable=true)
  41.      */
  42.     protected $webPageContent;
  43.     
  44.     /**
  45.      * @Gedmo\Translatable       
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     protected $webPageDescription;
  49.     /**
  50.      * @ORM\Column(type="integer", nullable=true)
  51.      */
  52.     private $websiteId;    
  53.     
  54.     /**
  55.      * @ORM\Column(type="integer", nullable=true)
  56.      */
  57.     private $eshopId
  58.     /**
  59.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  60.      */
  61.     protected $dateInserted;
  62.     
  63.     /**
  64.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  65.      */
  66.     protected $dateLastControl
  67.     /**
  68.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  69.      */
  70.     protected $datePublished;    
  71.     
  72.     /**
  73.      * @ORM\Column(type="integer", nullable=true)
  74.      */    
  75.     protected $webPageType self::PAGETYPE['PAGETYPE_COMMON'];  
  76.     /**
  77.      * @Gedmo\Translatable       
  78.      * @ORM\Column(type="text", nullable=true)
  79.      */
  80.     protected $seoTitle
  81.     /**
  82.      * @Gedmo\Translatable       
  83.      * @ORM\Column(type="text", nullable=true)
  84.      */
  85.     protected $seoDescription;    
  86.     /**
  87.      * Post locale
  88.      * Used locale to override Translation listener's locale
  89.      *
  90.      * @Gedmo\Locale
  91.      * 
  92.      */
  93.     protected $locale;      
  94.     /**
  95.      * @ORM\Column(type="integer", nullable=true)
  96.      */
  97.     private $priority=3
  98.     /**
  99.      * @ORM\Column(type="text", length=255, nullable=true)
  100.      */
  101.     protected $imageFile;   
  102.     /**
  103.      * @ORM\Column(type="integer")
  104.      */
  105.     protected $score=0;      
  106.     /**
  107.      * @ORM\Column(type="integer", nullable=true)
  108.      */
  109.     private $auctionHallId;
  110.     public function getWebPageId(): ?int
  111.     {
  112.         return $this->webPageId;
  113.     }
  114.     public function getWebPageName(): ?string
  115.     {
  116.         return $this->webPageName;
  117.     }
  118.     public function setWebPageName(?string $webPageName): self
  119.     {
  120.         $this->webPageName $webPageName;
  121.         return $this;
  122.     }
  123.     public function getWebPageContent(): ?string
  124.     {
  125.         return $this->webPageContent;
  126.     }
  127.     public function setWebPageContent(?string $webPageContent): self
  128.     {
  129.         $this->webPageContent $webPageContent;
  130.         return $this;
  131.     }
  132.     public function getWebPageDescription(): ?string
  133.     {
  134.         return $this->webPageDescription;
  135.     }
  136.     public function setWebPageDescription(?string $webPageDescription): self
  137.     {
  138.         $this->webPageDescription $webPageDescription;
  139.         return $this;
  140.     }
  141.     public function getWebsiteId(): ?int
  142.     {
  143.         return $this->websiteId;
  144.     }
  145.     public function setWebsiteId(?int $websiteId): self
  146.     {
  147.         $this->websiteId $websiteId;
  148.         return $this;
  149.     }
  150.     public function getEshopId(): ?int
  151.     {
  152.         return $this->eshopId;
  153.     }
  154.     public function setEshopId(?int $eshopId): self
  155.     {
  156.         $this->eshopId $eshopId;
  157.         return $this;
  158.     }
  159.     public function getDateInserted(): ?\DateTimeInterface
  160.     {
  161.         return $this->dateInserted;
  162.     }
  163.     public function setDateInserted(?\DateTimeInterface $dateInserted): self
  164.     {
  165.         $this->dateInserted $dateInserted;
  166.         return $this;
  167.     }
  168.     public function getDateLastControl(): ?\DateTimeInterface
  169.     {
  170.         return $this->dateLastControl;
  171.     }
  172.     public function setDateLastControl(?\DateTimeInterface $dateLastControl): self
  173.     {
  174.         $this->dateLastControl $dateLastControl;
  175.         return $this;
  176.     }
  177.     public function getDatePublished(): ?\DateTimeInterface
  178.     {
  179.         return $this->datePublished;
  180.     }
  181.     public function setDatePublished(?\DateTimeInterface $datePublished): self
  182.     {
  183.         $this->datePublished $datePublished;
  184.         return $this;
  185.     }
  186.     public function getWebPageType(): ?int
  187.     {
  188.         return $this->webPageType;
  189.     }
  190.     public function setWebPageType(?int $webPageType): self
  191.     {
  192.         $this->webPageType $webPageType;
  193.         return $this;
  194.     }
  195.     public function getSeoTitle(): ?string
  196.     {
  197.         return $this->seoTitle;
  198.     }
  199.     public function setSeoTitle(?string $seoTitle): self
  200.     {
  201.         $this->seoTitle $seoTitle;
  202.         return $this;
  203.     }
  204.     public function getSeoDescription(): ?string
  205.     {
  206.         return $this->seoDescription;
  207.     }
  208.     public function setSeoDescription(?string $seoDescription): self
  209.     {
  210.         $this->seoDescription $seoDescription;
  211.         return $this;
  212.     }
  213.     public function getPriority(): ?int
  214.     {
  215.         return $this->priority;
  216.     }
  217.     public function setPriority(?int $priority): self
  218.     {
  219.         $this->priority $priority;
  220.         return $this;
  221.     }
  222.     public function getImageFile(): ?string
  223.     {
  224.         return $this->imageFile;
  225.     }
  226.     public function setImageFile(?string $imageFile): self
  227.     {
  228.         $this->imageFile $imageFile;
  229.         return $this;
  230.     }
  231.     public function getScore(): ?int
  232.     {
  233.         return $this->score;
  234.     }
  235.     public function setScore(int $score): self
  236.     {
  237.         $this->score $score;
  238.         return $this;
  239.     }
  240.     public function getAuctionHallId(): ?int
  241.     {
  242.         return $this->auctionHallId;
  243.     }
  244.     public function setAuctionHallId(?int $auctionHallId): self
  245.     {
  246.         $this->auctionHallId $auctionHallId;
  247.         return $this;
  248.     }
  249.     /**
  250.      * Set locale
  251.      *
  252.      * @param string $locale
  253.      *
  254.      * @return WebPage
  255.      */
  256.     public function setLocale($locale)
  257.     {
  258.         $this->locale $locale;
  259.         return $this;
  260.     }
  261.     /**
  262.      * Get locale
  263.      *
  264.      * @return string
  265.      */
  266.     public function getLocale()
  267.     {
  268.         return $this->locale;
  269.     }
  270.     public function setTranslatableLocale($locale)
  271.     {
  272.         $this->locale $locale;
  273.     }
  274. }