src/Cms/Modules/NewsBundle/Entity/ModuleSettings.php line 18

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\NewsBundle\Entity;
  3. use Cms\ModuleBundle\Entity\ModuleSettings as ModuleModuleSettings;
  4. use Cms\ThemeBundle\Entity\InnerLayout;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Class ModuleSettings
  8.  * @package Cms\Modules\NewsBundle\Entity
  9.  *
  10.  * @ORM\Entity(repositoryClass = "Cms\Modules\NewsBundle\Doctrine\ModuleSettingsRepository")
  11.  * @ORM\Table(
  12.  *  name = "cms__modules__news__module_settings"
  13.  * )
  14.  */
  15. class ModuleSettings extends ModuleModuleSettings
  16. {
  17.     /**
  18.      * The actual "title" to use when referring to the module.
  19.      * For example, we have clients that host blogs out of like the "About Us" department,
  20.      * but want to call the blog "Principal's Message" or something.
  21.      *
  22.      * @var string
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     protected $title;
  26.     /**
  27.      * Custom heading HTML markup for clients to customize what comes prior to rendering out module listings.
  28.      *
  29.      * @var string
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     protected $listHtml;
  33.     /**
  34.      * Force a different Inner Layout to be used when rendering out the module views.
  35.      * This allows for special things like blogs to have sidebars with a tag cloud or other things.
  36.      *
  37.      * @var InnerLayout
  38.      * @ORM\ManyToOne(
  39.      *  targetEntity = "Cms\ThemeBundle\Entity\InnerLayout"
  40.      * )
  41.      * @ORM\JoinColumn(
  42.      *  name = "innerLayout",
  43.      *  referencedColumnName = "id",
  44.      *  onDelete = "SET NULL",
  45.      *  nullable=true
  46.      * )
  47.      */
  48.     protected $innerLayout;
  49.     /**
  50.      * Whether or not thumbnails should be shown in the list views,
  51.      * no matter whether the item has an image or not set on it.
  52.      *
  53.      * @var bool
  54.      * @ORM\Column(type="boolean")
  55.      */
  56.     protected $thumbnails true;
  57.     /**
  58.      * @var array|int[]
  59.      * @ORM\Column(
  60.      *     type = "array",
  61.      *     nullable = true
  62.      * )
  63.      */
  64.     protected $shares;
  65.     /**
  66.      * @param $title
  67.      * @return $this
  68.      */
  69.     public function setTitle($title)
  70.     {
  71.         $this->title $title;
  72.         return $this;
  73.     }
  74.     /**
  75.      * @return string
  76.      */
  77.     public function getTitle()
  78.     {
  79.         return $this->title;
  80.     }
  81.     /**
  82.      * @param $listHtml
  83.      * @return $this
  84.      */
  85.     public function setListHtml($listHtml)
  86.     {
  87.         $this->listHtml $listHtml;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return string
  92.      */
  93.     public function getListHtml()
  94.     {
  95.         return $this->listHtml;
  96.     }
  97.     /**
  98.      * @param $innerLayout
  99.      * @return $this
  100.      */
  101.     public function setInnerLayout($innerLayout)
  102.     {
  103.         $this->innerLayout $innerLayout;
  104.         return $this;
  105.     }
  106.     /**
  107.      * @return InnerLayout
  108.      */
  109.     public function getInnerLayout()
  110.     {
  111.         return $this->innerLayout;
  112.     }
  113.     /**
  114.      * @param $thumbnails
  115.      * @return $this
  116.      */
  117.     public function setThumbnails($thumbnails)
  118.     {
  119.         $this->thumbnails $thumbnails;
  120.         return $this;
  121.     }
  122.     /**
  123.      * @return boolean
  124.      */
  125.     public function isThumbnails()
  126.     {
  127.         return (bool)$this->thumbnails;
  128.     }
  129.     /**
  130.      * @return array|int[]
  131.      */
  132.     public function getShares()
  133.     {
  134.         return $this->shares;
  135.     }
  136.     /**
  137.      * @param array|null $value
  138.      * @return $this
  139.      */
  140.     public function setShares(array $value null)
  141.     {
  142.         $this->shares $value;
  143.         return $this;
  144.     }
  145. }