PHP Class Themosis\Page\Sections\SectionBuilder

Afficher le fichier Open project: themosis/framework

Protected Properties

Свойство Type Description
$data Themosis\Foundation\DataContainer Section data.
$shared array Section custom datas.
$view Illuminate\View\View Section view.

Méthodes publiques

Méthode 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 méthode

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

getData() public méthode

Return the section datas.
public getData ( ) : DataContainer
Résultat Themosis\Foundation\DataContainer

make() public méthode

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
Résultat SectionBuilder

with() public méthode

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

Property Details

$data protected_oe property

Section data.
protected DataContainer,Themosis\Foundation $data
Résultat Themosis\Foundation\DataContainer

$shared protected_oe property

Section custom datas.
protected array $shared
Résultat array

$view protected_oe property

Section view.
protected View,Illuminate\View $view
Résultat Illuminate\View\View