PHP Class HamlPHP, HamlPHP

Mostrar archivo Open project: hamlphp/hamlphp Class Usage Examples

Public Properties

Property Type Description
$Config Config

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

disableCache() public method

Disables caching.
public disableCache ( )

enableCache() public method

Enables caching.
public enableCache ( )

evaluate() public method

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

getCompiler() public method

Returns a compiler object.
public getCompiler ( ) : Compiler
return Compiler

getFilterContainer() public method

Returns a filter container object. Initializes the filter container with default filters if it's null.
public getFilterContainer ( ) : FilterContainer
return FilterContainer

getNodeFactory() public method

Returns a node factory object.
public getNodeFactory ( ) : NodeFactory
return NodeFactory

isCacheEnabled() public method

Returns true if caching is enabled.
public isCacheEnabled ( ) : boolean
return boolean

parseFile() public method

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

setCompiler() public method

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

setFilterContainer() public method

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

setNodeFactory() public method

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

Property Details

$Config public_oe static_oe property

public static Config $Config
return Config