PHP Class Devise\Pages\Interpreter\DeviseParser

Show file Open project: devisephp/cms Class Usage Examples

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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

getDeviseTags() public method

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

hasDeviseTags() public method

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

matches() protected method

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

parse() public method

Parses the string for us
public parse ( string $str ) : array
$str string
return array