<?php
/**
* Product class represents model of WebPage entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\WebPageRepo")
* @ORM\Table(name="web_page")
* @Gedmo\TranslationEntity(class="App\Entity\WebPageTranslation")
*/
class WebPage implements Translatable
{
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);
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $webPageId=0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $webPageName;
/**
* @Gedmo\Translatable
* @ORM\Column(type="text", nullable=true)
*/
protected $webPageContent;
/**
* @Gedmo\Translatable
* @ORM\Column(type="text", nullable=true)
*/
protected $webPageDescription;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $websiteId;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $eshopId;
/**
* @ORM\Column(type="datetime", nullable=true, nullable=true)
*/
protected $dateInserted;
/**
* @ORM\Column(type="datetime", nullable=true, nullable=true)
*/
protected $dateLastControl;
/**
* @ORM\Column(type="datetime", nullable=true, nullable=true)
*/
protected $datePublished;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $webPageType = self::PAGETYPE['PAGETYPE_COMMON'];
/**
* @Gedmo\Translatable
* @ORM\Column(type="text", nullable=true)
*/
protected $seoTitle;
/**
* @Gedmo\Translatable
* @ORM\Column(type="text", nullable=true)
*/
protected $seoDescription;
/**
* Post locale
* Used locale to override Translation listener's locale
*
* @Gedmo\Locale
*
*/
protected $locale;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $priority=3;
/**
* @ORM\Column(type="text", length=255, nullable=true)
*/
protected $imageFile;
/**
* @ORM\Column(type="integer")
*/
protected $score=0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $auctionHallId;
public function getWebPageId(): ?int
{
return $this->webPageId;
}
public function getWebPageName(): ?string
{
return $this->webPageName;
}
public function setWebPageName(?string $webPageName): self
{
$this->webPageName = $webPageName;
return $this;
}
public function getWebPageContent(): ?string
{
return $this->webPageContent;
}
public function setWebPageContent(?string $webPageContent): self
{
$this->webPageContent = $webPageContent;
return $this;
}
public function getWebPageDescription(): ?string
{
return $this->webPageDescription;
}
public function setWebPageDescription(?string $webPageDescription): self
{
$this->webPageDescription = $webPageDescription;
return $this;
}
public function getWebsiteId(): ?int
{
return $this->websiteId;
}
public function setWebsiteId(?int $websiteId): self
{
$this->websiteId = $websiteId;
return $this;
}
public function getEshopId(): ?int
{
return $this->eshopId;
}
public function setEshopId(?int $eshopId): self
{
$this->eshopId = $eshopId;
return $this;
}
public function getDateInserted(): ?\DateTimeInterface
{
return $this->dateInserted;
}
public function setDateInserted(?\DateTimeInterface $dateInserted): self
{
$this->dateInserted = $dateInserted;
return $this;
}
public function getDateLastControl(): ?\DateTimeInterface
{
return $this->dateLastControl;
}
public function setDateLastControl(?\DateTimeInterface $dateLastControl): self
{
$this->dateLastControl = $dateLastControl;
return $this;
}
public function getDatePublished(): ?\DateTimeInterface
{
return $this->datePublished;
}
public function setDatePublished(?\DateTimeInterface $datePublished): self
{
$this->datePublished = $datePublished;
return $this;
}
public function getWebPageType(): ?int
{
return $this->webPageType;
}
public function setWebPageType(?int $webPageType): self
{
$this->webPageType = $webPageType;
return $this;
}
public function getSeoTitle(): ?string
{
return $this->seoTitle;
}
public function setSeoTitle(?string $seoTitle): self
{
$this->seoTitle = $seoTitle;
return $this;
}
public function getSeoDescription(): ?string
{
return $this->seoDescription;
}
public function setSeoDescription(?string $seoDescription): self
{
$this->seoDescription = $seoDescription;
return $this;
}
public function getPriority(): ?int
{
return $this->priority;
}
public function setPriority(?int $priority): self
{
$this->priority = $priority;
return $this;
}
public function getImageFile(): ?string
{
return $this->imageFile;
}
public function setImageFile(?string $imageFile): self
{
$this->imageFile = $imageFile;
return $this;
}
public function getScore(): ?int
{
return $this->score;
}
public function setScore(int $score): self
{
$this->score = $score;
return $this;
}
public function getAuctionHallId(): ?int
{
return $this->auctionHallId;
}
public function setAuctionHallId(?int $auctionHallId): self
{
$this->auctionHallId = $auctionHallId;
return $this;
}
/**
* Set locale
*
* @param string $locale
*
* @return WebPage
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
public function setTranslatableLocale($locale)
{
$this->locale = $locale;
}
}