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.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     protected $webPageName;
  36.     
  37.     /**
  38.      * @Gedmo\Translatable       
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     protected $webPageContent;
  42.     
  43.     /**
  44.      * @Gedmo\Translatable       
  45.      * @ORM\Column(type="text", nullable=true)
  46.      */
  47.     protected $webPageDescription;
  48.     /**
  49.      * @ORM\Column(type="integer", nullable=true)
  50.      */
  51.     private $websiteId;    
  52.     
  53.     /**
  54.      * @ORM\Column(type="integer", nullable=true)
  55.      */
  56.     private $eshopId
  57.     /**
  58.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  59.      */
  60.     protected $dateInserted;
  61.     
  62.     /**
  63.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  64.      */
  65.     protected $dateLastControl
  66.     /**
  67.      * @ORM\Column(type="datetime", nullable=true, nullable=true)
  68.      */
  69.     protected $datePublished;    
  70.     
  71.     /**
  72.      * @ORM\Column(type="integer", nullable=true)
  73.      */    
  74.     protected $webPageType self::PAGETYPE['PAGETYPE_COMMON'];  
  75.     /**
  76.      * @Gedmo\Translatable       
  77.      * @ORM\Column(type="text", nullable=true)
  78.      */
  79.     protected $seoTitle
  80.     /**
  81.      * @Gedmo\Translatable       
  82.      * @ORM\Column(type="text", nullable=true)
  83.      */
  84.     protected $seoDescription;    
  85.     /**
  86.      * Post locale
  87.      * Used locale to override Translation listener's locale
  88.      *
  89.      * @Gedmo\Locale
  90.      * 
  91.      */
  92.     protected $locale;      
  93.     /**
  94.      * @ORM\Column(type="integer", nullable=true)
  95.      */
  96.     private $priority=3
  97.     /**
  98.      * @ORM\Column(type="text", length=255, nullable=true)
  99.      */
  100.     protected $imageFile;   
  101.     /**
  102.      * @ORM\Column(type="integer")
  103.      */
  104.     protected $score=0;      
  105.     /**
  106.      * @ORM\Column(type="integer", nullable=true)
  107.      */
  108.     private $auctionHallId;
  109.     public function getWebPageId(): ?int
  110.     {
  111.         return $this->webPageId;
  112.     }
  113.     public function getWebPageName(): ?string
  114.     {
  115.         return $this->webPageName;
  116.     }
  117.     public function setWebPageName(?string $webPageName): self
  118.     {
  119.         $this->webPageName $webPageName;
  120.         return $this;
  121.     }
  122.     public function getWebPageContent(): ?string
  123.     {
  124.         return $this->webPageContent;
  125.     }
  126.     public function setWebPageContent(?string $webPageContent): self
  127.     {
  128.         $this->webPageContent $webPageContent;
  129.         return $this;
  130.     }
  131.     public function getWebPageDescription(): ?string
  132.     {
  133.         return $this->webPageDescription;
  134.     }
  135.     public function setWebPageDescription(?string $webPageDescription): self
  136.     {
  137.         $this->webPageDescription $webPageDescription;
  138.         return $this;
  139.     }
  140.     public function getWebsiteId(): ?int
  141.     {
  142.         return $this->websiteId;
  143.     }
  144.     public function setWebsiteId(?int $websiteId): self
  145.     {
  146.         $this->websiteId $websiteId;
  147.         return $this;
  148.     }
  149.     public function getEshopId(): ?int
  150.     {
  151.         return $this->eshopId;
  152.     }
  153.     public function setEshopId(?int $eshopId): self
  154.     {
  155.         $this->eshopId $eshopId;
  156.         return $this;
  157.     }
  158.     public function getDateInserted(): ?\DateTimeInterface
  159.     {
  160.         return $this->dateInserted;
  161.     }
  162.     public function setDateInserted(?\DateTimeInterface $dateInserted): self
  163.     {
  164.         $this->dateInserted $dateInserted;
  165.         return $this;
  166.     }
  167.     public function getDateLastControl(): ?\DateTimeInterface
  168.     {
  169.         return $this->dateLastControl;
  170.     }
  171.     public function setDateLastControl(?\DateTimeInterface $dateLastControl): self
  172.     {
  173.         $this->dateLastControl $dateLastControl;
  174.         return $this;
  175.     }
  176.     public function getDatePublished(): ?\DateTimeInterface
  177.     {
  178.         return $this->datePublished;
  179.     }
  180.     public function setDatePublished(?\DateTimeInterface $datePublished): self
  181.     {
  182.         $this->datePublished $datePublished;
  183.         return $this;
  184.     }
  185.     public function getWebPageType(): ?int
  186.     {
  187.         return $this->webPageType;
  188.     }
  189.     public function setWebPageType(?int $webPageType): self
  190.     {
  191.         $this->webPageType $webPageType;
  192.         return $this;
  193.     }
  194.     public function getSeoTitle(): ?string
  195.     {
  196.         return $this->seoTitle;
  197.     }
  198.     public function setSeoTitle(?string $seoTitle): self
  199.     {
  200.         $this->seoTitle $seoTitle;
  201.         return $this;
  202.     }
  203.     public function getSeoDescription(): ?string
  204.     {
  205.         return $this->seoDescription;
  206.     }
  207.     public function setSeoDescription(?string $seoDescription): self
  208.     {
  209.         $this->seoDescription $seoDescription;
  210.         return $this;
  211.     }
  212.     public function getPriority(): ?int
  213.     {
  214.         return $this->priority;
  215.     }
  216.     public function setPriority(?int $priority): self
  217.     {
  218.         $this->priority $priority;
  219.         return $this;
  220.     }
  221.     public function getImageFile(): ?string
  222.     {
  223.         return $this->imageFile;
  224.     }
  225.     public function setImageFile(?string $imageFile): self
  226.     {
  227.         $this->imageFile $imageFile;
  228.         return $this;
  229.     }
  230.     public function getScore(): ?int
  231.     {
  232.         return $this->score;
  233.     }
  234.     public function setScore(int $score): self
  235.     {
  236.         $this->score $score;
  237.         return $this;
  238.     }
  239.     public function getAuctionHallId(): ?int
  240.     {
  241.         return $this->auctionHallId;
  242.     }
  243.     public function setAuctionHallId(?int $auctionHallId): self
  244.     {
  245.         $this->auctionHallId $auctionHallId;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Set locale
  250.      *
  251.      * @param string $locale
  252.      *
  253.      * @return WebPage
  254.      */
  255.     public function setLocale($locale)
  256.     {
  257.         $this->locale $locale;
  258.         return $this;
  259.     }
  260.     /**
  261.      * Get locale
  262.      *
  263.      * @return string
  264.      */
  265.     public function getLocale()
  266.     {
  267.         return $this->locale;
  268.     }
  269.     public function setTranslatableLocale($locale)
  270.     {
  271.         $this->locale $locale;
  272.     }
  273. }