PHP Class Pipe\DirectiveProcessor

Inheritance: extends MetaTemplate\Template\Base
Datei anzeigen Open project: chh/pipe

Protected Properties

Property Type Description
$body
$directives # invoked when the directive was used.
$header
$parsedDirectives

Public Methods

Method Description
isRegistered ( $name ) # Returns True or False.
register ( $name, $directive ) # Returns This.
render ( $context = null, $vars = [] ) # Returns the processed asset, with all directives stripped.

Protected Methods

Method Description
executeDirective ( $directive, $context, $argv ) # Returns the return value of the directive's callback.
getDirectives ( )
getProcessedHeader ( )
getProcessedSource ( )
prepare ( ) # Returns nothing.

Method Details

executeDirective() protected method

# Returns the return value of the directive's callback.
protected executeDirective ( $directive, $context, $argv )

getDirectives() protected method

protected getDirectives ( )

getProcessedHeader() protected method

protected getProcessedHeader ( )

getProcessedSource() protected method

protected getProcessedSource ( )

isRegistered() public method

# Returns True or False.
public isRegistered ( $name )

prepare() protected method

# Returns nothing.
protected prepare ( )

register() public method

# Returns This.
public register ( $name, $directive )

render() public method

# Returns the processed asset, with all directives stripped.
public render ( $context = null, $vars = [] )

Property Details

$body protected_oe property

protected $body

$directives protected_oe property

# invoked when the directive was used.
protected $directives

$header protected_oe property

protected $header

$parsedDirectives protected_oe property

protected $parsedDirectives