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

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\AlertBundle\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\AlertBundle\Entity
  9.  *
  10.  * @ORM\Entity(repositoryClass = "Cms\Modules\AlertBundle\Doctrine\ModuleSettingsRepository")
  11.  * @ORM\Table(
  12.  *  name = "cms__modules__alert__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.      * @var array|int[]
  51.      * @ORM\Column(
  52.      *     type = "array",
  53.      *     nullable = true
  54.      * )
  55.      */
  56.     protected $shares;
  57.     /**
  58.      * @param $title
  59.      * @return $this
  60.      */
  61.     public function setTitle($title)
  62.     {
  63.         $this->title $title;
  64.         return $this;
  65.     }
  66.     /**
  67.      * @return string
  68.      */
  69.     public function getTitle()
  70.     {
  71.         return $this->title;
  72.     }
  73.     /**
  74.      * @param $listHtml
  75.      * @return $this
  76.      */
  77.     public function setListHtml($listHtml)
  78.     {
  79.         $this->listHtml $listHtml;
  80.         return $this;
  81.     }
  82.     /**
  83.      * @return string
  84.      */
  85.     public function getListHtml()
  86.     {
  87.         return $this->listHtml;
  88.     }
  89.     /**
  90.      * @param $innerLayout
  91.      * @return $this
  92.      */
  93.     public function setInnerLayout($innerLayout)
  94.     {
  95.         $this->innerLayout $innerLayout;
  96.         return $this;
  97.     }
  98.     /**
  99.      * @return InnerLayout
  100.      */
  101.     public function getInnerLayout()
  102.     {
  103.         return $this->innerLayout;
  104.     }
  105.     /**
  106.      * @return array|int[]
  107.      */
  108.     public function getShares()
  109.     {
  110.         return $this->shares;
  111.     }
  112.     /**
  113.      * @param array|null $value
  114.      * @return $this
  115.      */
  116.     public function setShares(array $value null)
  117.     {
  118.         $this->shares $value;
  119.         return $this;
  120.     }
  121. }