Beispiel #1
0
 public function __construct(Page $page, array $attrs, $slotname, $editable = true)
 {
     parent::__construct($page, $attrs, $slotname, $editable);
     if (isset($this->attrs['target_page_id'])) {
         $this->targetPage = PageFacade::find($this->attrs['target_page_id']);
     }
 }
Beispiel #2
0
 public function __construct(Page $page, array $attrs, $slotname, $editable)
 {
     parent::__construct($page, $attrs, $slotname, $editable);
     if (isset($this->attrs['slides'])) {
         foreach ($this->attrs['slides'] as &$slide) {
             $slide = new Slideshow\Slide($slide);
         }
     }
 }
Beispiel #3
0
 public function __construct(Page $page, array $attrs, $slotname, $editable)
 {
     parent::__construct($page, $attrs, $slotname, $editable);
     if (isset($this->attrs['links'])) {
         foreach ($this->attrs['links'] as &$link) {
             $link = new Linkset\Link($link);
         }
     }
 }
Beispiel #4
0
 public function __construct(Page $page, array $attrs, $slotname, $editable)
 {
     parent::__construct($page, $attrs, $slotname, $editable);
     $this->params = isset($attrs['params']) ? $this->cleanData((array) $attrs['params']) : [];
 }
Beispiel #5
0
 public function getPlaceholderText()
 {
     $placeholder = parent::getPlaceholderText();
     return $this->allowFormatting ? "<p>{$placeholder}</p>" : $placeholder;
 }