PHP Class Blade, someline-starter

Inheritance: extends Illuminate\Support\Facades\Blade
Afficher le fichier Open project: someline/someline-starter Class Usage Examples

Méthodes publiques

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

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

compileEchoDefaults() public static méthode

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

compileString() public static méthode

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

directive() public static méthode

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

extend() public static méthode

Register a custom Blade compiler.
public static extend ( callable $compiler ) : void
$compiler callable
Résultat void

getCompiledPath() public static méthode

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

getContentTags() public static méthode

Gets the content tags used for the compiler.
public static getContentTags ( ) : string
Résultat string

getCustomDirectives() public static méthode

Get the list of custom directives.
public static getCustomDirectives ( ) : array
Résultat array

getEscapedContentTags() public static méthode

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

getExtensions() public static méthode

Get the extensions used by the compiler.
public static getExtensions ( ) : array
Résultat array

getPath() public static méthode

Get the path currently being compiled.
public static getPath ( ) : string
Résultat string

getRawTags() public static méthode

Gets the raw tags used by the compiler.
public static getRawTags ( ) : array
Résultat array

isExpired() public static méthode

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

setContentTags() public static méthode

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
Résultat void

setEchoFormat() public static méthode

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

setEscapedContentTags() public static méthode

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

setPath() public static méthode

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

setRawTags() public static méthode

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