예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setAttributes([new TextAttribute(["name" => "template"])]);
 }
예제 #2
0
파일: Page.php 프로젝트: youshido/cms
 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"])]);
 }