PHP Class Blade, someline-starter

Inheritance: extends Illuminate\Support\Facades\Blade
Datei anzeigen Open project: someline/someline-starter Class Usage Examples

Public Methods

Method Description
compile ( string $path = null ) : void Compile the view at the given path.
compileEchoDefaults ( string $value ) : string Compile the default values for the echo statement.
compileString ( string $value ) : string Compile the given Blade template contents.
directive ( string $name, callable $handler ) : void Register a handler for custom directives.
extend ( callable $compiler ) : void Register a custom Blade compiler.
getCompiledPath ( string $path ) : string Get the path to the compiled version of a view.
getContentTags ( ) : string Gets the content tags used for the compiler.
getCustomDirectives ( ) : array Get the list of custom directives.
getEscapedContentTags ( ) : string Gets the escaped content tags used for the compiler.
getExtensions ( ) : array Get the extensions used by the compiler.
getPath ( ) : string Get the path currently being compiled.
getRawTags ( ) : array Gets the raw tags used by the compiler.
isExpired ( string $path ) : boolean Determine if the view at the given path is expired.
setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void Sets the content tags used for the compiler.
setEchoFormat ( string $format ) : void Set the echo format to be used by the compiler.
setEscapedContentTags ( string $openTag, string $closeTag ) : void Sets the escaped content tags used for the compiler.
setPath ( string $path ) : void Set the path currently being compiled.
setRawTags ( string $openTag, string $closeTag ) : void Sets the raw tags used for the compiler.

Method Details

compile() public static method

Compile the view at the given path.
public static compile ( string $path = null ) : void
$path string
return void

compileEchoDefaults() public static method

Compile the default values for the echo statement.
public static compileEchoDefaults ( string $value ) : string
$value string
return string

compileString() public static method

Compile the given Blade template contents.
public static compileString ( string $value ) : string
$value string
return string

directive() public static method

Register a handler for custom directives.
public static directive ( string $name, callable $handler ) : void
$name string
$handler callable
return void

extend() public static method

Register a custom Blade compiler.
public static extend ( callable $compiler ) : void
$compiler callable
return void

getCompiledPath() public static method

Get the path to the compiled version of a view.
public static getCompiledPath ( string $path ) : string
$path string
return string

getContentTags() public static method

Gets the content tags used for the compiler.
public static getContentTags ( ) : string
return string

getCustomDirectives() public static method

Get the list of custom directives.
public static getCustomDirectives ( ) : array
return array

getEscapedContentTags() public static method

Gets the escaped content tags used for the compiler.
public static getEscapedContentTags ( ) : string
return string

getExtensions() public static method

Get the extensions used by the compiler.
public static getExtensions ( ) : array
return array

getPath() public static method

Get the path currently being compiled.
public static getPath ( ) : string
return string

getRawTags() public static method

Gets the raw tags used by the compiler.
public static getRawTags ( ) : array
return array

isExpired() public static method

Determine if the view at the given path is expired.
public static isExpired ( string $path ) : boolean
$path string
return boolean

setContentTags() public static method

Sets the content tags used for the compiler.
public static setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void
$openTag string
$closeTag string
$escaped boolean
return void

setEchoFormat() public static method

Set the echo format to be used by the compiler.
public static setEchoFormat ( string $format ) : void
$format string
return void

setEscapedContentTags() public static method

Sets the escaped content tags used for the compiler.
public static setEscapedContentTags ( string $openTag, string $closeTag ) : void
$openTag string
$closeTag string
return void

setPath() public static method

Set the path currently being compiled.
public static setPath ( string $path ) : void
$path string
return void

setRawTags() public static method

Sets the raw tags used for the compiler.
public static setRawTags ( string $openTag, string $closeTag ) : void
$openTag string
$closeTag string
return void