Esempio n. 1
0
 public function getAvailableSubviewsForObject(View $object)
 {
     if (!$object->isSubviewsAllowed()) {
         return [];
     }
     if (method_exists($object, 'getAvailableSubviews')) {
         return $object->getAvailableSubviews($this);
     } else {
         return $this->getContentViews();
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->setAttributes([new TextAttribute(["name" => "template"])]);
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->setPosition(0);
     $this->setAttributes([new TextAttribute(["name" => "title"]), new TextAttribute(["name" => "alias"]), new TextAttribute(["name" => "template"]), new TextareaAttribute(["name" => "description"]), new ImageAttribute(["name" => "background"])]);
 }