Method |
Description |
|
__construct ( Xiaoler\Blade\Engines\EngineInterface $engine, Xiaoler\Blade\ViewFinderInterface $finder ) : void |
Create a new view factory instance. |
|
addLocation ( string $location ) : void |
Add a location to the array of view locations. |
|
addLoop ( array | Countable $data ) : void |
Add new loop to the stack. |
|
addNamespace ( string $namespace, string | array $hints ) : void |
Add a new namespace to the loader. |
|
alias ( string $view, string $alias ) : void |
Add an alias for a view. |
|
appendSection ( ) : string |
Stop injecting content into a section and append it. |
|
decrementRender ( ) : void |
Decrement the rendering counter. |
|
doneRendering ( ) : boolean |
Check if there are no active render operations. |
|
exists ( string $view ) : boolean |
Determine if a given view exists. |
|
file ( string $path, array $data = [], array $mergeData = [] ) : Xiaoler\Blade\View |
Get the evaluated view contents for the given view. |
|
flushSections ( ) : void |
Flush all of the section contents. |
|
flushSectionsIfDoneRendering ( ) : void |
Flush all of the section contents if done rendering. |
|
getFinder ( ) : Xiaoler\Blade\ViewFinderInterface |
Get the view finder instance. |
|
getFirstLoop ( ) : array |
Get an instance of the first loop in the stack. |
|
getLoopStack ( ) : array |
Get the entire loop stack. |
|
getNames ( ) : array |
Get all of the registered named views in environment. |
|
getSections ( ) : array |
Get the entire array of sections. |
|
getShared ( ) : array |
Get all of the shared data for the environment. |
|
hasSection ( string $name ) : boolean |
Check if section exists. |
|
incrementLoopIndices ( ) : void |
Increment the top loop's indices. |
|
incrementRender ( ) : void |
Increment the rendering counter. |
|
inject ( string $section, string $content ) : void |
Inject inline content into a section. |
|
make ( string $view, array $data = [], array $mergeData = [] ) : Xiaoler\Blade\View |
Get the evaluated view contents for the given view. |
|
name ( string $view, string $name ) : void |
Register a named view. |
|
of ( string $view, mixed $data = [] ) : Xiaoler\Blade\View |
Get the evaluated view contents for a named view. |
|
popLoop ( ) : void |
Pop a loop from the top of the loop stack. |
|
prependNamespace ( string $namespace, string | array $hints ) : void |
Prepend a new namespace to the loader. |
|
renderEach ( string $view, array $data, string $iterator, string $empty = 'raw|' ) : string |
Get the rendered contents of a partial from a loop. |
|
setFinder ( Xiaoler\Blade\ViewFinderInterface $finder ) : void |
Set the view finder instance. |
|
share ( array | string $key, mixed $value = null ) : mixed |
Add a piece of shared data to the environment. |
|
shared ( string $key, mixed $default = null ) : mixed |
Get an item from the shared data. |
|
startPush ( string $section, string $content = '' ) : void |
Start injecting content into a push section. |
|
startSection ( string $section, string $content = '' ) : void |
Start injecting content into a section. |
|
stopPush ( ) : string |
Stop injecting content into a push section. |
|
stopSection ( boolean $overwrite = false ) : string |
Stop injecting content into a section. |
|
yieldContent ( string $section, string $default = '' ) : string |
Get the string contents of a section. |
|
yieldPushContent ( string $section, string $default = '' ) : string |
Get the string contents of a push section. |
|
yieldSection ( ) : string |
Stop injecting content into a section and return its contents. |
|