PHP Class Transphporm\TSSFunction\Template

Inheritance: implements Transphporm\TSSFunction
Exibir arquivo Open project: level-2/transphporm

Public Methods

Method Description
__construct ( Transphporm\Hook\ElementData $elementData, Transphporm\Parser\CssToXpath $xPath, FilePath $filePath )
run ( array $args, DomElement $element = null )

Private Methods

Method Description
getClonedElement ( $node, $tss )
getTemplateContent ( $document, $tss )
readArray ( $array, $index )
templateSubsection ( $doc, $selector )

Method Details

__construct() public method

public __construct ( Transphporm\Hook\ElementData $elementData, Transphporm\Parser\CssToXpath $xPath, FilePath $filePath )
$elementData Transphporm\Hook\ElementData
$xPath Transphporm\Parser\CssToXpath
$filePath Transphporm\FilePath

run() public method

public run ( array $args, DomElement $element = null )
$args array
$element DomElement