PHP Class Devise\Pages\Interpreter\DeviseParser

Afficher le fichier Open project: devisephp/cms Class Usage Examples

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
matches ( string $html, string $pattern ) : array Finds a regex pattern and returns the match for us

Method Details

__construct() public méthode

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

getDeviseTags() public méthode

Get the list of regex'ed devise tags out of the html
public getDeviseTags ( string $html ) : array
$html string
Résultat array

hasDeviseTags() public méthode

Check the html to see if it has any devise tags in it
public hasDeviseTags ( string $html ) : boolean
$html string
Résultat boolean

matches() protected méthode

Finds a regex pattern and returns the match for us
protected matches ( string $html, string $pattern ) : array
$html string
$pattern string
Résultat array

parse() public méthode

Parses the string for us
public parse ( string $str ) : array
$str string
Résultat array