Class Tpex
Tpex is a parser used by Thelia CMS (http://thelia.net)
Tpex use syntax like loop : <THELIA id="loopId" type="loopName" parameter1="value1" parameter2="value2"> #SUBTITUTION1 #SUBSTITUTION2 #SUBSTITUTION-n </THELIA>
you have to implements your own loop, all the logical is in your loop not in Tpex
filter syntax :
[...(filter_name{param1, param2, ... }) ... ]
base param syntax :
PARAM_BASE_parameName=paramValue
Namespace: Thelia\Tpex
Author: Manuel Raynaud <mraynaud@openstudio.fr>
Located at core/lib/Thelia/Tpex/Tpex.php
Author: Manuel Raynaud <mraynaud@openstudio.fr>
Located at core/lib/Thelia/Tpex/Tpex.php
public
|
#
__construct( Symfony\Component\HttpFoundation\Request $request, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
Tpex constructor |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
protected
string
|
$content | |
|
protected
string
|
$basedir | |
|
protected
Symfony\Component\HttpFoundation\Request
|
$request | |
|
protected
Symfony\Component\EventDispatcher\EventDispatcherInterface
|
$dispatcher | |
|
protected
Array
|
$baseParam | array() |
#
associative array containing information for baseParam execution |
protected
boolean
|
$init | false |
|
protected
array
|
$config | array(
"cacheDir" => false,
"cacheTimeFile" => ".time_cache",
"fileLifeTime" => 86400,
"checkPeriod" => 7200
) |
|
protected
array
|
$regex | array(
'include' => '/#INCLUDE[\s]*"([^"]*)"/',
'baseParam' => '/#PARAM_BASE_([a-zA-Z0-9_]+)[\s]*=[\s]*([0-9]*)[\s]*/'
) |
|
protected
|
$tokenizer | |