PHP Class Redaxscript\Parser

Since: 2.0.0
Author: Henry Ruhs
Datei anzeigen Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_language object instance of the language class
$_optionArray array options of the parser
$_output string output of the parser
$_registry object instance of the registry class
$_tagArray array array of pseudo tags

Public Methods

Method Description
__construct ( Registry $registry, Language $language ) constructor of the class
getOutput ( ) : string get the output
init ( string $content = null, array $optionArray = null ) init the class

Protected Methods

Method Description
_parseBlockcode ( string $content = null ) : string parse the blockcode tag
_parseLanguage ( string $content = null ) : string parse the language tag
_parseModule ( string $content = null ) : string parse the module tag
_parseReadmore ( string $content = null ) : string parse the readmore tag
_parseRegistry ( string $content = null ) : string parse the registry tag
_parseTemplate ( string $content = null ) : string parse the template tag

Method Details

__construct() public method

constructor of the class
Since: 2.4.0
public __construct ( Registry $registry, Language $language )
$registry Registry instance of the registry class
$language Language instance of the language class

_parseBlockcode() protected method

parse the blockcode tag
Since: 2.6.0
protected _parseBlockcode ( string $content = null ) : string
$content string content to be parsed
return string

_parseLanguage() protected method

parse the language tag
Since: 2.5.0
protected _parseLanguage ( string $content = null ) : string
$content string content to be parsed
return string

_parseModule() protected method

parse the module tag
Since: 3.0.0
protected _parseModule ( string $content = null ) : string
$content string content to be parsed
return string

_parseReadmore() protected method

parse the readmore tag
Since: 2.6.0
protected _parseReadmore ( string $content = null ) : string
$content string content to be parsed
return string

_parseRegistry() protected method

parse the registry tag
Since: 2.5.0
protected _parseRegistry ( string $content = null ) : string
$content string content to be parsed
return string

_parseTemplate() protected method

parse the template tag
Since: 3.0.0
protected _parseTemplate ( string $content = null ) : string
$content string content to be parsed
return string

getOutput() public method

get the output
Since: 2.0.0
public getOutput ( ) : string
return string

init() public method

init the class
Since: 2.4.0
public init ( string $content = null, array $optionArray = null )
$content string content to be parsed
$optionArray array options of the parser

Property Details

$_language protected_oe property

instance of the language class
protected object $_language
return object

$_optionArray protected_oe property

options of the parser
protected array $_optionArray
return array

$_output protected_oe property

output of the parser
protected string $_output
return string

$_registry protected_oe property

instance of the registry class
protected object $_registry
return object

$_tagArray protected_oe property

array of pseudo tags
protected array $_tagArray
return array