PHP Class HamlPHP, HamlPHP

Afficher le fichier Open project: hamlphp/hamlphp Class Usage Examples

Méthodes publiques

Свойство Type Description
$Config Config

Méthodes publiques

Méthode 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 méthode

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

disableCache() public méthode

Disables caching.
public disableCache ( )

enableCache() public méthode

Enables caching.
public enableCache ( )

evaluate() public méthode

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

getCompiler() public méthode

Returns a compiler object.
public getCompiler ( ) : Compiler
Résultat Compiler

getFilterContainer() public méthode

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

getNodeFactory() public méthode

Returns a node factory object.
public getNodeFactory ( ) : NodeFactory
Résultat NodeFactory

isCacheEnabled() public méthode

Returns true if caching is enabled.
public isCacheEnabled ( ) : boolean
Résultat boolean

parseFile() public méthode

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

setCompiler() public méthode

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

setFilterContainer() public méthode

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

setNodeFactory() public méthode

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

Property Details

$Config public_oe static_oe property

public static Config $Config
Résultat Config