PHP Класс Jade\Compiler

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$buffer array
$filename string
$filters array
$jade Jade
$parentIndents
$quote string
$xml

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

Метод Описание
__construct ( array/Jade $options = [], array $filters = [], $filename = null )
compile ( $node ) : string
handleCode ( $input, string $name = '' ) : array
handleString ( $input ) : array
interpolate ( string $text ) : mixed
subCompiler ( ) : Compiler Get a compiler with the same settings.
wrapInPhp ( $code ) : string Return code wrapped in PHP tags.
wrapOutPhp ( $code ) : string Return code wrapped out of a PHP code.

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

Метод Описание
apply ( $method, $arguments ) : mixed
buffer ( $line, null $indent = null )
closingTag ( ) : string php closing tag depanding on the pretty print setting.
createCode ( $code ) : string
createPhpBlock ( $code, null $statements = null ) : string
createStatements ( ) : array
handleArgumentValue ( $arg )
handleCodePhp ( $input, $name = '' )
interpolateFromCapture ( array $match ) : string
isConstant ( string $str ) : boolean | integer
renderPhpStatements ( $code, null $statements = null ) : string

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

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

public __construct ( array/Jade $options = [], array $filters = [], $filename = null )
$options array/Jade
$filters array

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

protected apply ( $method, $arguments ) : mixed
$method
$arguments
Результат mixed

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

protected buffer ( $line, null $indent = null )
$line
$indent null

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

php closing tag depanding on the pretty print setting.
protected closingTag ( ) : string
Результат string

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

public compile ( $node ) : string
$node
Результат string

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

protected createCode ( $code ) : string
$code
Результат string

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

protected createPhpBlock ( $code, null $statements = null ) : string
$code
$statements null
Результат string

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

protected createStatements ( ) : array
Результат array

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

protected handleArgumentValue ( $arg )

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

public handleCode ( $input, string $name = '' ) : array
$input
$name string
Результат array

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

protected handleCodePhp ( $input, $name = '' )

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

public handleString ( $input ) : array
$input
Результат array

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

public interpolate ( string $text ) : mixed
$text string
Результат mixed

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

protected interpolateFromCapture ( array $match ) : string
$match array
Результат string

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

protected isConstant ( string $str ) : boolean | integer
$str string
Результат boolean | integer

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

protected renderPhpStatements ( $code, null $statements = null ) : string
$code
$statements null
Результат string

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

Get a compiler with the same settings.
public subCompiler ( ) : Compiler
Результат Compiler

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

Return code wrapped in PHP tags.
public wrapInPhp ( $code ) : string
Результат string

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

Return code wrapped out of a PHP code.
public wrapOutPhp ( $code ) : string
Результат string

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

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

protected array $buffer
Результат array

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

protected string $filename
Результат string

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

protected array $filters
Результат array

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

protected Jade,jade $jade
Результат Jade

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

protected $parentIndents

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

protected string $quote
Результат string

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

protected $xml