PHP Class Themosis\Page\Sections\SectionBuilder

Mostrar archivo Open project: themosis/framework

Protected Properties

Property Type Description
$data Themosis\Foundation\DataContainer Section data.
$shared array Section custom datas.
$view Illuminate\View\View Section view.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

getData() public method

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

make() public method

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
return SectionBuilder

with() public method

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

Property Details

$data protected_oe property

Section data.
protected DataContainer,Themosis\Foundation $data
return Themosis\Foundation\DataContainer

$shared protected_oe property

Section custom datas.
protected array $shared
return array

$view protected_oe property

Section view.
protected View,Illuminate\View $view
return Illuminate\View\View