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

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\CalendarBundle\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\CalendarBundle\Entity
  9.  *
  10.  * @ORM\Entity(repositoryClass = "Cms\Modules\CalendarBundle\Doctrine\ModuleSettingsRepository")
  11.  * @ORM\Table(
  12.  *  name = "cms__modules__calendar__module_settings"
  13.  * )
  14.  */
  15. class ModuleSettings extends ModuleModuleSettings
  16. {
  17.     const VIEW_MODE_LIST 'list';
  18.     const VIEW_MODE_GRAPHICAL 'graphical';
  19.     /**
  20.      * The actual "title" to use when referring to the module.
  21.      * For example, we have clients that host blogs out of like the "About Us" department,
  22.      * but want to call the blog "Principal's Message" or something.
  23.      *
  24.      * @var string
  25.      * @ORM\Column(type="string", nullable=true)
  26.      */
  27.     protected $title;
  28.     /**
  29.      * Custom heading HTML markup for clients to customize what comes prior to rendering out module listings.
  30.      *
  31.      * @var string
  32.      * @ORM\Column(type="text", nullable=true)
  33.      */
  34.     protected $listHtml;
  35.     /**
  36.      * Force a different Inner Layout to be used when rendering out the module views.
  37.      * This allows for special things like blogs to have sidebars with a tag cloud or other things.
  38.      *
  39.      * @var InnerLayout
  40.      * @ORM\ManyToOne(
  41.      *  targetEntity = "Cms\ThemeBundle\Entity\InnerLayout"
  42.      * )
  43.      * @ORM\JoinColumn(
  44.      *  name = "innerLayout",
  45.      *  referencedColumnName = "id",
  46.      *  onDelete = "SET NULL",
  47.      *  nullable=true
  48.      * )
  49.      */
  50.     protected $innerLayout;
  51.     /**
  52.      * @var string
  53.      * @ORM\Column(
  54.      *     type = "string",
  55.      *     nullable = true
  56.      * )
  57.      */
  58.     protected $viewMode;
  59.     /**
  60.      * @var array|int[]
  61.      * @ORM\Column(
  62.      *     type = "array",
  63.      *     nullable = true
  64.      * )
  65.      */
  66.     protected $shares;
  67.     /**
  68.      * @var array|int[]
  69.      * @ORM\Column(
  70.      *     type = "array",
  71.      *     nullable = true
  72.      * )
  73.      */
  74.     protected $selections;
  75.     /**
  76.      * @param $title
  77.      * @return $this
  78.      */
  79.     public function setTitle($title)
  80.     {
  81.         $this->title $title;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return string
  86.      */
  87.     public function getTitle()
  88.     {
  89.         return $this->title;
  90.     }
  91.     /**
  92.      * @param $listHtml
  93.      * @return $this
  94.      */
  95.     public function setListHtml($listHtml)
  96.     {
  97.         $this->listHtml $listHtml;
  98.         return $this;
  99.     }
  100.     /**
  101.      * @return string
  102.      */
  103.     public function getListHtml()
  104.     {
  105.         return $this->listHtml;
  106.     }
  107.     /**
  108.      * @param $innerLayout
  109.      * @return $this
  110.      */
  111.     public function setInnerLayout($innerLayout)
  112.     {
  113.         $this->innerLayout $innerLayout;
  114.         return $this;
  115.     }
  116.     /**
  117.      * @return InnerLayout
  118.      */
  119.     public function getInnerLayout()
  120.     {
  121.         return $this->innerLayout;
  122.     }
  123.     /**
  124.      * @return string
  125.      */
  126.     public function getViewMode()
  127.     {
  128.         return $this->viewMode;
  129.     }
  130.     /**
  131.      * @param string $viewMode
  132.      * @return $this
  133.      */
  134.     public function setViewMode($viewMode)
  135.     {
  136.         $this->viewMode $viewMode;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return array|int[]
  141.      */
  142.     public function getShares()
  143.     {
  144.         return $this->shares;
  145.     }
  146.     /**
  147.      * @param array|null $value
  148.      * @return $this
  149.      */
  150.     public function setShares(array $value null)
  151.     {
  152.         $this->shares $value;
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return array|int[]
  157.      */
  158.     public function getSelections()
  159.     {
  160.         return $this->selections;
  161.     }
  162.     /**
  163.      * @param array|null $value
  164.      * @return $this
  165.      */
  166.     public function setSelections(array $value null)
  167.     {
  168.         $this->selections $value;
  169.         return $this;
  170.     }
  171. }