PHP Класс Lexy

based on: https://github.com/laravel/framework/blob/master/src/Illuminate/View/Compilers/BladeCompiler.php
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$allowed_calls array [$allowed_calls description]
$cachePath
$compilers
$extensions
$srcinfo

Открытые методы

Метод Описание
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]

Защищенные методы

Метод Описание
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 )

Описание методов

allowCall() публичный Метод

public allowCall ( $call )

cache_file() защищенный Метод

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

check_security() защищенный Метод

[check_security description]
protected check_security ( [type] $code ) : [type]
$code [type]
Результат [type]

check_syntax() защищенный Метод

[check_syntax description]
protected check_syntax ( [type] $code ) : [type]
$code [type]
Результат [type]

compile() защищенный Метод

[compile description]
protected compile ( [type] $text, boolean $sandbox = false ) : [type]
$text [type]
$sandbox boolean [description]
Результат [type]

compile_comments() защищенный Метод

Rewrites Lexi's comments into PHP comments.
protected compile_comments ( string $value ) : string
$value string
Результат string

compile_default_structures() защищенный Метод

Rewrites Lexi's structure openings into PHP structure openings.
protected compile_default_structures ( string $value ) : string
$value string
Результат string

compile_echos() защищенный Метод

Rewrites Lexi's echo statements into PHP echo statements.
protected compile_echos ( string $value ) : string
$value string
Результат string

compile_else() защищенный Метод

Rewrites Lexi's else statements into PHP else statements.
protected compile_else ( string $value ) : string
$value string
Результат string

compile_extensions() защищенный Метод

Execute user defined compilers.
protected compile_extensions ( string $value ) : string
$value string
Результат string

compile_php_tags() защищенный Метод

Rewrites Lexi's php tags.
protected compile_php_tags ( string $value ) : string
$value string
Результат string

compile_unescape_echos() защищенный Метод

Rewrites Lexi's escaped statements.
protected compile_unescape_echos ( string $value ) : string
$value string
Результат string

compile_unless() защищенный Метод

Rewrites Lexi's "unless" statements into valid PHP.
protected compile_unless ( string $value ) : string
$value string
Результат string

execute() публичный Метод

[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]
Результат [type]

extend() публичный Метод

public extend ( $compiler )

file() публичный Метод

[file description]
public file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type]
$file [type]
$params array [description]
$sandbox boolean [description]
Результат [type]

get_cached_file() защищенный Метод

protected get_cached_file ( $file, $sandbox )

parse() публичный Метод

[parse description]
public parse ( [type] $text, boolean $sandbox = false, $srcinfo = null ) : [type]
$text [type]
$sandbox boolean [description]
Результат [type]

render() публичный статический Метод

[render description]
public static render ( $content, $params = [], $sandbox = false, $srcinfo = null ) : [type]
Результат [type]

render_file() публичный статический Метод

[render_file description]
public static render_file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type]
$file [type]
$params array [description]
$sandbox boolean [description]
Результат [type]

setCachePath() публичный Метод

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

Описание свойств

$allowed_calls защищенное свойство

[$allowed_calls description]
protected array $allowed_calls
Результат array

$cachePath защищенное свойство

protected $cachePath

$compilers защищенное свойство

protected $compilers

$extensions защищенное свойство

protected $extensions

$srcinfo защищенное свойство

protected $srcinfo