PHP Класс Compiler, HamlPHP

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

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

Метод Описание
__construct ( HamlPHP $hamlphp )
getLine ( $index )
getLines ( )
getNextLine ( )
parseFile ( string $fileName ) Compiles haml from a file.
parseLines ( array $rawLines = [] ) Compiles haml from an array of lines.
parseString ( string $rawString ) Compiles haml from a string.
setHamlPhp ( HamlPHP $hamlphp )

Приватные методы

Метод Описание
getIndentLevel ( string $line ) : integer Returns the indent level of a line.
removeEmptyLines ( array $rawLines ) @todo We CANNOT remove empty lines inside some filters (eg the planned markdown filter), actually, i think we shouldn't do this at all

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

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

public __construct ( HamlPHP $hamlphp )
$hamlphp HamlPHP

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

public getLine ( $index )

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

public getLines ( )

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

public getNextLine ( )

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

Compiles haml from a file.
public parseFile ( string $fileName )
$fileName string

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

Compiles haml from an array of lines.
public parseLines ( array $rawLines = [] )
$rawLines array

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

Compiles haml from a string.
public parseString ( string $rawString )
$rawString string

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

public setHamlPhp ( HamlPHP $hamlphp )
$hamlphp HamlPHP