PHP Класс Devise\Pages\Interpreter\DeviseParser

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

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

Метод Описание
__construct ( Parser $parser = null ) Create a new Devise Parser
getDeviseTags ( string $html ) : array Get the list of regex'ed devise tags out of the html
hasDeviseTags ( string $html ) : boolean Check the html to see if it has any devise tags in it
parse ( string $str ) : array Parses the string for us

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

Метод Описание
matches ( string $html, string $pattern ) : array Finds a regex pattern and returns the match for us

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

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

Create a new Devise Parser
public __construct ( Parser $parser = null )
$parser Parser

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

Get the list of regex'ed devise tags out of the html
public getDeviseTags ( string $html ) : array
$html string
Результат array

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

Check the html to see if it has any devise tags in it
public hasDeviseTags ( string $html ) : boolean
$html string
Результат boolean

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

Finds a regex pattern and returns the match for us
protected matches ( string $html, string $pattern ) : array
$html string
$pattern string
Результат array

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

Parses the string for us
public parse ( string $str ) : array
$str string
Результат array