PHP Класс Transphporm\Builder

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $template, $tss = '', $modules = null )
loadModule ( transphporm\Module $module )
output ( $data = null, $document = false )
setCache ( ArrayAccess $cache )
setRootDir ( $rootDir )
setTime ( $time ) Would be better if PHP allowed setting the script clock, but this is the simplest way of overriding it

Приватные методы

Метод Описание
doPostProcessing ( $template ) Add a postprocessing hook. This cleans up anything transphporm has added to the markup which needs to be removed
executeTssRule ( $rule, $template, $config ) Process a TSS rule e.g. `ul li {content: "foo"; format: bar}
getRules ( $template, $config ) N.b. only files can be cached
isValidDoc ( $xml )
loadTemplate ( ) Load a template, firstly check if it's a file or a valid string
processRules ( $template, $config )

Описание методов

__construct() публичный Метод

public __construct ( $template, $tss = '', $modules = null )

loadModule() публичный Метод

public loadModule ( transphporm\Module $module )
$module transphporm\Module

output() публичный Метод

public output ( $data = null, $document = false )

setCache() публичный Метод

public setCache ( ArrayAccess $cache )
$cache ArrayAccess

setRootDir() публичный Метод

public setRootDir ( $rootDir )

setTime() публичный Метод

Would be better if PHP allowed setting the script clock, but this is the simplest way of overriding it
public setTime ( $time )