PHP Класс HamlPHP, HamlPHP

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

Открытые свойства

Свойство Тип Описание
$Config Config

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

Метод Описание
__construct ( IStorage $storage = null )
disableCache ( ) Disables caching.
enableCache ( ) Enables caching.
evaluate ( $content, array $contentVariables = [] )
getCompiler ( ) : Compiler Returns a compiler object.
getFilterContainer ( ) : FilterContainer Returns a filter container object. Initializes the filter container with default filters if it's null.
getNodeFactory ( ) : NodeFactory Returns a node factory object.
isCacheEnabled ( ) : boolean Returns true if caching is enabled.
parseFile ( string $fileName ) Parses a haml file and returns the compile result.
setCompiler ( Compiler $compiler ) Sets a compiler.
setFilterContainer ( FilterContainer $container ) Sets a filter container and updates the node factory to use it.
setNodeFactory ( NodeFactory $factory ) Sets a node factory.

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

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

public __construct ( IStorage $storage = null )
$storage IStorage

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

Disables caching.
public disableCache ( )

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

Enables caching.
public enableCache ( )

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

public evaluate ( $content, array $contentVariables = [] )
$contentVariables array

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

Returns a compiler object.
public getCompiler ( ) : Compiler
Результат Compiler

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

Returns a filter container object. Initializes the filter container with default filters if it's null.
public getFilterContainer ( ) : FilterContainer
Результат FilterContainer

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

Returns a node factory object.
public getNodeFactory ( ) : NodeFactory
Результат NodeFactory

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

Returns true if caching is enabled.
public isCacheEnabled ( ) : boolean
Результат boolean

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

Parses a haml file and returns the compile result.
public parseFile ( string $fileName )
$fileName string

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

Sets a compiler.
public setCompiler ( Compiler $compiler )
$compiler Compiler

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

Sets a filter container and updates the node factory to use it.
public setFilterContainer ( FilterContainer $container )
$container FilterContainer

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

Sets a node factory.
public setNodeFactory ( NodeFactory $factory )
$factory NodeFactory

Описание свойств

$Config публичное статическое свойство

public static Config $Config
Результат Config