Showing 10 of 1,214 results.

allOfType | Querying Document Nodes

Finds all nodes of the provided type. Argument Description $type The type to search. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function allOfType ( 6 string $ type 7 ) : NodeCollection ; Example Use 1 <?php 2 3...

allNotOfType | Querying Document Nodes

Finds all nodes that are not of the provided type. Argument Description $type The type to search. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function allNotOfType ( 6 string $ type 7 ) : NodeCollection ; Example...

firstOfType | Querying Document Nodes

Locates the first instance of the provided node type in the document. Argument Description $type The node type. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function firstOfType ( 6 string $ type 7 ) : AbstractNode ;...

lastOfType | Querying Document Nodes

Locates the last instance of the provided node type in the document. Argument Description $type The node type. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function lastOfType ( 6 string $ type 7 ) : AbstractNode ;...

getNodesBefore | Querying Document Nodes

Gets all the nodes before the provided node. Argument Description $node The check node. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 5 6 public function getNodesBefore ( 7...

getNodesAfter | Querying Document Nodes

Gets all the nodes after the provided node. Argument Description $node The check node. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 5 6 public function getNodesAfter ( 7...

withValidator | Validating Documents

Adds a validator instance to the internal BladeValidator instance. Argument Description $validator The validator instance. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \ Validation \...

removeNode | Blade Documents

…trigger structural analysis. If structural analysis has already been performed on the document, calling this method may remove the start or ending node of existing pairs. Argument Description $node The node to remove. 1 <?php 2 3 use Stillat \...