<?php
namespace Cms\Modules\GalleryBundle\Entity;
use Cms\ModuleBundle\Entity\ModuleSettings as ModuleModuleSettings;
use Cms\ThemeBundle\Entity\InnerLayout;
use Doctrine\ORM\Mapping as ORM;
/**
* Class ModuleSettings
* @package Cms\Modules\GalleryBundle\Entity
*
* @ORM\Entity(repositoryClass = "Cms\Modules\GalleryBundle\Doctrine\ModuleSettingsRepository")
* @ORM\Table(
* name = "cms__modules__gallery__module_settings"
* )
*/
class ModuleSettings extends ModuleModuleSettings
{
/**
* The actual "title" to use when referring to the module.
* For example, we have clients that host blogs out of like the "About Us" department,
* but want to call the blog "Principal's Message" or something.
*
* @var string
* @ORM\Column(type="string", nullable=true)
*/
protected $title;
/**
* Custom heading HTML markup for clients to customize what comes prior to rendering out module listings.
*
* @var string
* @ORM\Column(type="text", nullable=true)
*/
protected $listHtml;
/**
* Force a different Inner Layout to be used when rendering out the module views.
* This allows for special things like blogs to have sidebars with a tag cloud or other things.
*
* @var InnerLayout
* @ORM\ManyToOne(
* targetEntity = "Cms\ThemeBundle\Entity\InnerLayout"
* )
* @ORM\JoinColumn(
* name = "innerLayout",
* referencedColumnName = "id",
* onDelete = "SET NULL",
* nullable=true
* )
*/
protected $innerLayout;
/**
* @var array|int[]
* @ORM\Column(
* type = "array",
* nullable = true
* )
*/
protected $shares;
/**
* @param $title
* @return $this
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param $listHtml
* @return $this
*/
public function setListHtml($listHtml)
{
$this->listHtml = $listHtml;
return $this;
}
/**
* @return string
*/
public function getListHtml()
{
return $this->listHtml;
}
/**
* @param $innerLayout
* @return $this
*/
public function setInnerLayout($innerLayout)
{
$this->innerLayout = $innerLayout;
return $this;
}
/**
* @return InnerLayout
*/
public function getInnerLayout()
{
return $this->innerLayout;
}
/**
* @return array|int[]
*/
public function getShares()
{
return $this->shares;
}
/**
* @param array|null $value
* @return $this
*/
public function setShares(array $value = null)
{
$this->shares = $value;
return $this;
}
}