PHP 클래스 HamlPHP, HamlPHP

파일 보기 프로젝트 열기: hamlphp/hamlphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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