PHP Class Lexy

based on: https://github.com/laravel/framework/blob/master/src/Illuminate/View/Compilers/BladeCompiler.php
Afficher le fichier Open project: sjardim/Hugopit Class Usage Examples

Protected Properties

Свойство Type Description
$allowed_calls array [$allowed_calls description]
$cachePath
$compilers
$extensions
$srcinfo

Méthodes publiques

Méthode Description
allowCall ( $call )
execute ( [type] $content, array $params = [], boolean $sandbox = false, [type] $srcinfo = null ) : [type] [execute description]
extend ( $compiler )
file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type] [file description]
parse ( [type] $text, boolean $sandbox = false, $srcinfo = null ) : [type] [parse description]
render ( $content, $params = [], $sandbox = false, $srcinfo = null ) : [type] [render description]
render_file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type] [render_file description]
setCachePath ( [type] $path ) [setcachePath description]

Méthodes protégées

Méthode Description
cache_file ( $file, $cachedfile, $filemtime = null, $sandbox = false )
check_security ( [type] $code ) : [type] [check_security description]
check_syntax ( [type] $code ) : [type] [check_syntax description]
compile ( [type] $text, boolean $sandbox = false ) : [type] [compile description]
compile_comments ( string $value ) : string Rewrites Lexi's comments into PHP comments.
compile_default_structures ( string $value ) : string Rewrites Lexi's structure openings into PHP structure openings.
compile_echos ( string $value ) : string Rewrites Lexi's echo statements into PHP echo statements.
compile_else ( string $value ) : string Rewrites Lexi's else statements into PHP else statements.
compile_extensions ( string $value ) : string Execute user defined compilers.
compile_php_tags ( string $value ) : string Rewrites Lexi's php tags.
compile_unescape_echos ( string $value ) : string Rewrites Lexi's escaped statements.
compile_unless ( string $value ) : string Rewrites Lexi's "unless" statements into valid PHP.
get_cached_file ( $file, $sandbox )

Method Details

allowCall() public méthode

public allowCall ( $call )

cache_file() protected méthode

protected cache_file ( $file, $cachedfile, $filemtime = null, $sandbox = false )

check_security() protected méthode

[check_security description]
protected check_security ( [type] $code ) : [type]
$code [type]
Résultat [type]

check_syntax() protected méthode

[check_syntax description]
protected check_syntax ( [type] $code ) : [type]
$code [type]
Résultat [type]

compile() protected méthode

[compile description]
protected compile ( [type] $text, boolean $sandbox = false ) : [type]
$text [type]
$sandbox boolean [description]
Résultat [type]

compile_comments() protected méthode

Rewrites Lexi's comments into PHP comments.
protected compile_comments ( string $value ) : string
$value string
Résultat string

compile_default_structures() protected méthode

Rewrites Lexi's structure openings into PHP structure openings.
protected compile_default_structures ( string $value ) : string
$value string
Résultat string

compile_echos() protected méthode

Rewrites Lexi's echo statements into PHP echo statements.
protected compile_echos ( string $value ) : string
$value string
Résultat string

compile_else() protected méthode

Rewrites Lexi's else statements into PHP else statements.
protected compile_else ( string $value ) : string
$value string
Résultat string

compile_extensions() protected méthode

Execute user defined compilers.
protected compile_extensions ( string $value ) : string
$value string
Résultat string

compile_php_tags() protected méthode

Rewrites Lexi's php tags.
protected compile_php_tags ( string $value ) : string
$value string
Résultat string

compile_unescape_echos() protected méthode

Rewrites Lexi's escaped statements.
protected compile_unescape_echos ( string $value ) : string
$value string
Résultat string

compile_unless() protected méthode

Rewrites Lexi's "unless" statements into valid PHP.
protected compile_unless ( string $value ) : string
$value string
Résultat string

execute() public méthode

[execute description]
public execute ( [type] $content, array $params = [], boolean $sandbox = false, [type] $srcinfo = null ) : [type]
$content [type]
$params array [description]
$sandbox boolean [description]
$srcinfo [type]
Résultat [type]

extend() public méthode

public extend ( $compiler )

file() public méthode

[file description]
public file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type]
$file [type]
$params array [description]
$sandbox boolean [description]
Résultat [type]

get_cached_file() protected méthode

protected get_cached_file ( $file, $sandbox )

parse() public méthode

[parse description]
public parse ( [type] $text, boolean $sandbox = false, $srcinfo = null ) : [type]
$text [type]
$sandbox boolean [description]
Résultat [type]

render() public static méthode

[render description]
public static render ( $content, $params = [], $sandbox = false, $srcinfo = null ) : [type]
Résultat [type]

render_file() public static méthode

[render_file description]
public static render_file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type]
$file [type]
$params array [description]
$sandbox boolean [description]
Résultat [type]

setCachePath() public méthode

[setcachePath description]
public setCachePath ( [type] $path )
$path [type]

Property Details

$allowed_calls protected_oe property

[$allowed_calls description]
protected array $allowed_calls
Résultat array

$cachePath protected_oe property

protected $cachePath

$compilers protected_oe property

protected $compilers

$extensions protected_oe property

protected $extensions

$srcinfo protected_oe property

protected $srcinfo