Showing 10 of 1,214 results.

setDirectiveNames | Blade Documents

Sets the document's directive names. The directive names supplied to this method should match those that were used when initially parsing the input template. These directive names will be used when performing structural analysis. If you are using...

setFilePath | Blade Documents

Sets the document's file path. Document file paths are optional for most use cases, but can be used by other features such as Workspaces or some validators. Argument Description $path The file path. 1 <?php 2 3 use Stillat \ BladeParser \ Document...

setNodes | Blade Documents

Sets the document nodes. Sets the nodes that represent the parsed template, as well as the original document text. The original document text will be used with other features, like text extraction. Argument Description $nodes The nodes. $nodeText...

getNodes | Blade Documents

Gets the document nodes. Returns a NodeCollection instance containing the nodes that represent the parsed template. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function getNodes ( ) : NodeCollection ;

getRootNodes | Blade Documents

Gets the root document nodes. Returns a NodeCollection instance containing all nodes that do not have a parent node. Invoking this method will trigger structural analysis. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public...

withCompilerOptions | Compiling Workspaces

Sets the workspace compiler options. Argument Description $options The compiler options. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ DocumentCompilerOptions ; 4 use Stillat \ BladeParser \ Workspaces \ Workspace ; 5 6 public function...

withPathFormatter | Compiling Workspaces

Sets the PathFormatter implementation used by the workspace. PathFormatter implementations are used to determine what the final output file paths look like. Argument Description $formatter The path formatter. 1 <?php 2 3 use Stillat \ BladeParser...

Step 1: The Presenter | Semantic UI Paginator for Laravel 4

First, we are going to write a SemanticPresenter class. This class is what Laravel 4 will use when constructing the links for the pagination elements. So let's start it. Create a new file named SemanticPresenter.php somewhere where composer and...

Laravel Collection Public API: reduce

reduce(callable $callback, $initial = null) The reduce method is to reduce a collection into only one item. It does this by iterating over the collection and applying the $callback function on each item. The $callback function should define two...

Filter Search