PHP 클래스 Themosis\Page\Sections\SectionBuilder

파일 보기 프로젝트 열기: themosis/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$data Themosis\Foundation\DataContainer Section data.
$shared array Section custom datas.
$view Illuminate\View\View Section view.

공개 메소드들

메소드 설명
__construct ( DataContainer $data )
getData ( ) : DataContainer Return the section datas.
make ( string $slug, string $name, array $data = [], Illuminate\View\View $view = null ) : SectionBuilder Define a Section instance. Used in Page sections.
with ( string | array $key, mixed $value = null ) : SectionBuilder Register custom data for the section view.

메소드 상세

__construct() 공개 메소드

public __construct ( DataContainer $data )
$data Themosis\Foundation\DataContainer

getData() 공개 메소드

Return the section datas.
public getData ( ) : DataContainer
리턴 Themosis\Foundation\DataContainer

make() 공개 메소드

Define a Section instance. Used in Page sections.
public make ( string $slug, string $name, array $data = [], Illuminate\View\View $view = null ) : SectionBuilder
$slug string
$name string
$data array Custom properties for the section.
$view Illuminate\View\View
리턴 SectionBuilder

with() 공개 메소드

Register custom data for the section view.
public with ( string | array $key, mixed $value = null ) : SectionBuilder
$key string | array
$value mixed
리턴 SectionBuilder

프로퍼티 상세

$data 보호되어 있는 프로퍼티

Section data.
protected DataContainer,Themosis\Foundation $data
리턴 Themosis\Foundation\DataContainer

$shared 보호되어 있는 프로퍼티

Section custom datas.
protected array $shared
리턴 array

$view 보호되어 있는 프로퍼티

Section view.
protected View,Illuminate\View $view
리턴 Illuminate\View\View