<?php
/**
* Service class represents simple model of Gallery entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
// src/AppBundle/Entity/Gallery.php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\GalleryRepo")
* @ORM\Table(name="gallery")
*/
class Gallery
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $galleryId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $galleryName;
/**
* @ORM\Column(type="integer", length=100)
*/
protected $userId=0;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $galleryDescription;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isPublic=true;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isWebBased=true;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateCreated;
/**
* @ORM\Column(type="integer")
*/
protected $slideGalleryWidth=0;
/**
* @ORM\Column(type="integer")
*/
protected $slideGalleryHeight=0;
/**
* @ORM\Column(type="integer")
*/
protected $slideshowWidth=0;
/**
* @ORM\Column(type="integer")
*/
protected $slideshowHeight=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $folderName;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $slideshowEffect;
/**
* @ORM\Column(type="integer")
*/
protected $thumbSize=0;
/**
* @ORM\Column(type="integer")
*/
protected $isFileLock=0;
/**
* @ORM\Column(type="integer")
*/
protected $slideGalleryIsVertical=0;
/**
* @ORM\Column(type="integer")
*/
protected $slideshowTime=0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $galleryLogoUrl;
/**
* Many galleries have Many websites.
* @ORM\ManyToMany(targetEntity="GalleryWebsite",cascade={"persist"})
* @ORM\JoinTable(name="gallery_to_website",
* joinColumns={@ORM\JoinColumn(name="gallery_id", referencedColumnName="gallery_id")},
* inverseJoinColumns={@ORM\JoinColumn(name="gallery_website_id", referencedColumnName="gallery_website_id", unique=false)}
* )
*/
protected $websites;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $galleryCss;
/**
* Get galleryId
*
* @return integer
*/
public function getGalleryId()
{
return $this->galleryId;
}
/**
* Set galleryName
*
* @param string $galleryName
*
* @return Gallery
*/
public function setGalleryName($galleryName)
{
$this->galleryName = $galleryName;
return $this;
}
/**
* Get galleryName
*
* @return string
*/
public function getGalleryName()
{
return $this->galleryName;
}
/**
* Set userId
*
* @param integer $userId
*
* @return Gallery
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return integer
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set galleryDescription
*
* @param string $galleryDescription
*
* @return Gallery
*/
public function setGalleryDescription($galleryDescription)
{
$this->galleryDescription = $galleryDescription;
return $this;
}
/**
* Get galleryDescription
*
* @return string
*/
public function getGalleryDescription()
{
return $this->galleryDescription;
}
/**
* Set isPublic
*
* @param boolean $isPublic
*
* @return Gallery
*/
public function setIsPublic($isPublic)
{
$this->isPublic = $isPublic;
return $this;
}
/**
* Get isPublic
*
* @return boolean
*/
public function getIsPublic()
{
return $this->isPublic;
}
/**
* Set isWebBased
*
* @param boolean $isWebBased
*
* @return Gallery
*/
public function setIsWebBased($isWebBased)
{
$this->isWebBased = $isWebBased;
return $this;
}
/**
* Get isWebBased
*
* @return boolean
*/
public function getIsWebBased()
{
return $this->isWebBased;
}
/**
* Set dateCreated
*
* @param \DateTime $dateCreated
*
* @return Gallery
*/
public function setDateCreated($dateCreated)
{
$this->dateCreated = $dateCreated;
return $this;
}
/**
* Get dateCreated
*
* @return \DateTime
*/
public function getDateCreated()
{
return $this->dateCreated;
}
/**
* Set slideGalleryWidth
*
* @param integer $slideGalleryWidth
*
* @return Gallery
*/
public function setSlideGalleryWidth($slideGalleryWidth)
{
$this->slideGalleryWidth = $slideGalleryWidth;
return $this;
}
/**
* Get slideGalleryWidth
*
* @return integer
*/
public function getSlideGalleryWidth()
{
return $this->slideGalleryWidth;
}
/**
* Set slideGalleryHeight
*
* @param integer $slideGalleryHeight
*
* @return Gallery
*/
public function setSlideGalleryHeight($slideGalleryHeight)
{
$this->slideGalleryHeight = $slideGalleryHeight;
return $this;
}
/**
* Get slideGalleryHeight
*
* @return integer
*/
public function getSlideGalleryHeight()
{
return $this->slideGalleryHeight;
}
/**
* Set slideshowWidth
*
* @param integer $slideshowWidth
*
* @return Gallery
*/
public function setSlideshowWidth($slideshowWidth)
{
$this->slideshowWidth = $slideshowWidth;
return $this;
}
/**
* Get slideshowWidth
*
* @return integer
*/
public function getSlideshowWidth()
{
return $this->slideshowWidth;
}
/**
* Set slideshowHeight
*
* @param integer $slideshowHeight
*
* @return Gallery
*/
public function setSlideshowHeight($slideshowHeight)
{
$this->slideshowHeight = $slideshowHeight;
return $this;
}
/**
* Get slideshowHeight
*
* @return integer
*/
public function getSlideshowHeight()
{
return $this->slideshowHeight;
}
/**
* Set folderName
*
* @param string $folderName
*
* @return Gallery
*/
public function setFolderName($folderName)
{
$this->folderName = $folderName;
return $this;
}
/**
* Get folderName
*
* @return string
*/
public function getFolderName()
{
return $this->folderName;
}
/**
* Set slideshowEffect
*
* @param string $slideshowEffect
*
* @return Gallery
*/
public function setSlideshowEffect($slideshowEffect)
{
$this->slideshowEffect = $slideshowEffect;
return $this;
}
/**
* Get slideshowEffect
*
* @return string
*/
public function getSlideshowEffect()
{
return $this->slideshowEffect;
}
/**
* Set thumbSize
*
* @param integer $thumbSize
*
* @return Gallery
*/
public function setThumbSize($thumbSize)
{
$this->thumbSize = $thumbSize;
return $this;
}
/**
* Get thumbSize
*
* @return integer
*/
public function getThumbSize()
{
return $this->thumbSize;
}
/**
* Set isFileLock
*
* @param integer $isFileLock
*
* @return Gallery
*/
public function setIsFileLock($isFileLock)
{
$this->isFileLock = $isFileLock;
return $this;
}
/**
* Get isFileLock
*
* @return integer
*/
public function getIsFileLock()
{
return $this->isFileLock;
}
/**
* Set slideGalleryIsVertical
*
* @param integer $slideGalleryIsVertical
*
* @return Gallery
*/
public function setSlideGalleryIsVertical($slideGalleryIsVertical)
{
$this->slideGalleryIsVertical = $slideGalleryIsVertical;
return $this;
}
/**
* Get slideGalleryIsVertical
*
* @return integer
*/
public function getSlideGalleryIsVertical()
{
return $this->slideGalleryIsVertical;
}
/**
* Set slideshowTime
*
* @param integer $slideshowTime
*
* @return Gallery
*/
public function setSlideshowTime($slideshowTime)
{
$this->slideshowTime = $slideshowTime;
return $this;
}
/**
* Get slideshowTime
*
* @return integer
*/
public function getSlideshowTime()
{
return $this->slideshowTime;
}
/**
* Set galleryLogoUrl
*
* @param string $galleryLogoUrl
*
* @return Gallery
*/
public function setGalleryLogoUrl($galleryLogoUrl)
{
$this->galleryLogoUrl = $galleryLogoUrl;
return $this;
}
/**
* Get galleryLogoUrl
*
* @return string
*/
public function getGalleryLogoUrl()
{
return $this->galleryLogoUrl;
}
/**
* Constructor
*/
public function __construct()
{
$this->websites = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Add website
*
* @param \App\Entity\GalleryWebsite $website
*
* @return Gallery
*/
public function addWebsite(\App\Entity\GalleryWebsite $website)
{
$this->websites[] = $website;
return $this;
}
/**
* Remove website
*
* @param \App\Entity\GalleryWebsite $website
*/
public function removeWebsite(\App\Entity\GalleryWebsite $website)
{
$this->websites->removeElement($website);
}
/**
* Get websites
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getWebsites()
{
return $this->websites;
}
/**
* Set galleryCss
*
* @param string $galleryCss
*
* @return Gallery
*/
public function setGalleryCss($galleryCss)
{
$this->galleryCss = $galleryCss;
return $this;
}
/**
* Get galleryCss
*
* @return string
*/
public function getGalleryCss()
{
return $this->galleryCss;
}
public function isIsPublic(): ?bool
{
return $this->isPublic;
}
public function isIsWebBased(): ?bool
{
return $this->isWebBased;
}
}