PHP Class Pipe\DirectiveProcessor

Inheritance: extends MetaTemplate\Template\Base
Show file 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 property

protected $body

$directives protected property

# invoked when the directive was used.
protected $directives

$header protected property

protected $header

$parsedDirectives protected property

protected $parsedDirectives