1251 lines
29 KiB
HTML
1251 lines
29 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="generator" content="ApiGen 2.8.0" />
|
|
|
|
<title>Class Thelia\Tpex\Tokenizer\Tokenize | thelia</title>
|
|
|
|
<script type="text/javascript" src="resources/combined.js?394153670"></script>
|
|
<script type="text/javascript" src="elementlist.js?2310571897"></script>
|
|
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div id="left">
|
|
<div id="menu">
|
|
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
|
|
|
<div id="groups">
|
|
<h3>Namespaces</h3>
|
|
<ul>
|
|
<li class="active"><a href="namespace-Thelia.html">Thelia<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Action.html">Action</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Config.html">Config</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Controller.html">Controller</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Core.html">Core<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Core.Bundle.html">Bundle</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Core.DependencyInjection.html">DependencyInjection<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Core.DependencyInjection.Compiler.html">Compiler</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Core.DependencyInjection.Loader.html">Loader</a>
|
|
</li>
|
|
</ul></li>
|
|
<li><a href="namespace-Thelia.Core.Event.html">Event</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Core.EventListener.html">EventListener</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Core.Template.html">Template<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Core.Template.BaseParam.html">BaseParam</a>
|
|
</li>
|
|
</ul></li></ul></li>
|
|
<li><a href="namespace-Thelia.Exception.html">Exception</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Log.html">Log<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Log.Destination.html">Destination</a>
|
|
</li>
|
|
</ul></li>
|
|
<li><a href="namespace-Thelia.Model.html">Model<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Model.map.html">map</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Model.om.html">om</a>
|
|
</li>
|
|
</ul></li>
|
|
<li><a href="namespace-Thelia.Routing.html">Routing<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Routing.Matcher.html">Matcher</a>
|
|
</li>
|
|
</ul></li>
|
|
<li><a href="namespace-Thelia.Tools.html">Tools</a>
|
|
</li>
|
|
<li class="active"><a href="namespace-Thelia.Tpex.html">Tpex<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Tpex.BaseParam.html">BaseParam</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Tpex.Element.html">Element<span></span></a>
|
|
<ul>
|
|
<li><a href="namespace-Thelia.Tpex.Element.Loop.html">Loop</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Tpex.Element.TestLoop.html">TestLoop</a>
|
|
</li>
|
|
</ul></li>
|
|
<li><a href="namespace-Thelia.Tpex.Event.html">Event</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Tpex.Exception.html">Exception</a>
|
|
</li>
|
|
<li><a href="namespace-Thelia.Tpex.Filter.html">Filter</a>
|
|
</li>
|
|
<li class="active"><a href="namespace-Thelia.Tpex.Tokenizer.html">Tokenizer</a>
|
|
</li>
|
|
</ul></li></ul></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
|
|
<div id="elements">
|
|
<h3>Classes</h3>
|
|
<ul>
|
|
<li class="active"><a href="class-Thelia.Tpex.Tokenizer.Tokenize.html">Tokenize</a></li>
|
|
</ul>
|
|
|
|
<h3>Interfaces</h3>
|
|
<ul>
|
|
<li><a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html">TokenizeInterface</a></li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="splitter"></div>
|
|
|
|
<div id="right">
|
|
<div id="rightInner">
|
|
<form id="search">
|
|
<input type="hidden" name="cx" value="" />
|
|
<input type="hidden" name="ie" value="UTF-8" />
|
|
<input type="text" name="q" class="text" />
|
|
<input type="submit" value="Search" />
|
|
</form>
|
|
|
|
<div id="navigation">
|
|
<ul>
|
|
<li>
|
|
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
</li>
|
|
<li>
|
|
<a href="namespace-Thelia.Tpex.Tokenizer.html" title="Summary of Thelia\Tpex\Tokenizer"><span>Namespace</span></a>
|
|
</li>
|
|
<li class="active">
|
|
<span>Class</span> </li>
|
|
</ul>
|
|
<ul>
|
|
<li>
|
|
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
</li>
|
|
</ul>
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="content" class="class">
|
|
<h1>Class Tokenize</h1>
|
|
|
|
|
|
|
|
<dl class="tree">
|
|
<dd style="padding-left:0px">
|
|
<b><span>Thelia\Tpex\Tokenizer\Tokenize</span></b>
|
|
implements
|
|
<a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html"><span>Thelia\Tpex\Tokenizer\TokenizeInterface</span></a>
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="info">
|
|
|
|
|
|
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Tpex.html">Tpex</a>\<a href="namespace-Thelia.Tpex.Tokenizer.html">Tokenizer</a><br />
|
|
|
|
|
|
<b>Located at</b> <a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#41-647" title="Go to source code">core/lib/Thelia/Tpex/Tokenizer/Tokenize.php</a><br />
|
|
</div>
|
|
|
|
|
|
|
|
<table class="summary" id="methods">
|
|
<caption>Methods summary</caption>
|
|
<tr data-order="__construct" id="___construct">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#___construct">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#138-146" title="Go to source code">__construct</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span>, <span>Symfony\Component\EventDispatcher\EventDispatcherInterface <var>$dispatcher</var></span>, <span>mixed <var>$content</var> = <span class="php-keyword1">null</span></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="setLoop" id="_setLoop">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_setLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#148-175" title="Go to source code">setLoop</a>( <span>array <var>$loops</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for loop execution</p>
|
|
|
|
<p>key is loop name value is the class implementing/extending base loop
|
|
classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$loop = array( "product" => "Thelia\Loop\Product", "category" =>
|
|
"Thelia\Loop\Category", "myLoop" => "My\Own\Loop" );</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$loops</var></dt>
|
|
<dd><code>array</code><br>$loops</dd>
|
|
</dl></div>
|
|
|
|
|
|
<h4>Throws</h4>
|
|
<div class="list">
|
|
<code>InvalidArgumentException</code><br>if loop name already exists<br />
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Implementation of</h4>
|
|
<div class="list"><code><a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html#_setLoop">Thelia\Tpex\Tokenizer\TokenizeInterface::setLoop()</a></code></div>
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="getLoop" id="_getLoop">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
array
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_getLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#177-183" title="Go to source code">getLoop</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
<h4>Returns</h4>
|
|
<div class="list">
|
|
<code>array</code><br>containing all loop. array's key are name loop and array value is the class of
|
|
this loop<br />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="setFilter" id="_setFilter">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_setFilter">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#185-211" title="Go to source code">setFilter</a>( <span>array <var>$filters</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
<p>associative array containing information for filter execution</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for filter execution</p>
|
|
|
|
<p>key is filter name value is the class implementing/extending base loop
|
|
classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$filter = array( "upperCase" => "Thelia\Filter\UpperCase", "lowerCase"
|
|
=> "Thelia\Filter\LowerCase", "myFilter" => "My\Own\Filter" );</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$filters</var></dt>
|
|
<dd><code>array</code><br>$filters</dd>
|
|
</dl></div>
|
|
|
|
|
|
<h4>Throws</h4>
|
|
<div class="list">
|
|
<code>InvalidArgumentException</code><br>if filter name already exists<br />
|
|
</div>
|
|
|
|
|
|
|
|
<h4>Implementation of</h4>
|
|
<div class="list"><code><a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html#_setFilter">Thelia\Tpex\Tokenizer\TokenizeInterface::setFilter()</a></code></div>
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="setTestLoop" id="_setTestLoop">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_setTestLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#213-239" title="Go to source code">setTestLoop</a>( <span>array <var>$testLoops</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
<p>associative array containing information for loop test execution</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for loop test execution</p>
|
|
|
|
<p>key is test loop name value is the class implementing/extending base test
|
|
loop classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$testLoop = array( "equal" => "Thelia\testLoop\Equal", "myTestLoop" =>
|
|
"My\Own\TestLoop" );</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$testLoops</var></dt>
|
|
<dd><code>array</code><br>$testLoops</dd>
|
|
</dl></div>
|
|
|
|
|
|
<h4>Throws</h4>
|
|
<div class="list">
|
|
<code>InvalidArgumentException</code><br />
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="getTestLoop" id="_getTestLoop">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_getTestLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#241-244" title="Go to source code">getTestLoop</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="getFilter" id="_getFilter">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_getFilter">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#246-249" title="Go to source code">getFilter</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="setContent" id="_setContent">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_setContent">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#251-257" title="Go to source code">setContent</a>( <span>mixed <var>$content</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>the content to parse and tokenize</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$content</var></dt>
|
|
<dd><code>mixed</code><br>$content</dd>
|
|
</dl></div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Implementation of</h4>
|
|
<div class="list"><code><a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html#_setContent">Thelia\Tpex\Tokenizer\TokenizeInterface::setContent()</a></code></div>
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="tokenize" id="_tokenize">
|
|
|
|
<td class="attributes"><code>
|
|
public
|
|
Thelia\Tpex\Element|<code><a href="class-Thelia.Tpex.Element.ElementCollection.html">Thelia\Tpex\Element\ElementCollection</a></code>
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_tokenize">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#259-268" title="Go to source code">tokenize</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
<h4>Returns</h4>
|
|
<div class="list">
|
|
<code>Thelia\Tpex\Element|<code><a href="class-Thelia.Tpex.Element.ElementCollection.html">Thelia\Tpex\Element\ElementCollection</a></code></code><br />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4>Implementation of</h4>
|
|
<div class="list"><code><a href="class-Thelia.Tpex.Tokenizer.TokenizeInterface.html#_tokenize">Thelia\Tpex\Tokenizer\TokenizeInterface::tokenize()</a></code></div>
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="parseContent" id="_parseContent">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
<code><a href="class-Thelia.Tpex.Element.ElementCollection.html">Thelia\Tpex\Element\ElementCollection</a></code>
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_parseContent">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#270-296" title="Go to source code">parseContent</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
<h4>Returns</h4>
|
|
<div class="list">
|
|
<code><code><a href="class-Thelia.Tpex.Element.ElementCollection.html">Thelia\Tpex\Element\ElementCollection</a></code></code><br />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="parseArgs" id="_parseArgs">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_parseArgs">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#298-331" title="Go to source code">parseArgs</a>( )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="addVar" id="_addVar">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_addVar">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#333-351" title="Go to source code">addVar</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="processToken" id="_processToken">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_processToken">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#353-449" title="Go to source code">processToken</a>( <span>mixed <var>$atoken</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="controlEndLoop" id="_controlEndLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_controlEndLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#451-470" title="Go to source code">controlEndLoop</a>( <span>string <var>$idLoop</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>When end tag is found like /THELIA, Tpex control that this end tag is good
|
|
and ended good loop.</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$idLoop</var></dt>
|
|
<dd><code>string</code><br>$idLoop</dd>
|
|
</dl></div>
|
|
|
|
|
|
<h4>Throws</h4>
|
|
<div class="list">
|
|
<code><code><a href="class-Thelia.Tpex.Exception.TokenSyntaxException.html">Thelia\Tpex\Exception\TokenSyntaxException</a></code></code><br />
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="initSimpleLoop" id="_initSimpleLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
<code><a href="class-Thelia.Tpex.Element.SimpleLoopElement.html">Thelia\Tpex\Element\SimpleLoopElement</a></code>
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_initSimpleLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#472-500" title="Go to source code">initSimpleLoop</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>Initialize a simpleLoopElement with arguments and content.</p>
|
|
|
|
<p>name is the seconde part of THELIA_xxx tag (ex : for THELIA_foo foo is the
|
|
loop name).</p>
|
|
|
|
<p>$token and \Thelia\Tpex\Element\SimpleLoopElement are push into
|
|
self::loopIdStack and self::currentLoopStack respectively</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$token</var></dt>
|
|
<dd><code>mixed</code><br>$token</dd>
|
|
</dl></div>
|
|
|
|
<h4>Returns</h4>
|
|
<div class="list">
|
|
<code><code><a href="class-Thelia.Tpex.Element.SimpleLoopElement.html">Thelia\Tpex\Element\SimpleLoopElement</a></code></code><br />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="initRepeatLoop" id="_initRepeatLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_initRepeatLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#502-517" title="Go to source code">initRepeatLoop</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="initConditionalLoop" id="_initConditionalLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_initConditionalLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#519-535" title="Go to source code">initConditionalLoop</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="initConditionalVarLoop" id="_initConditionalVarLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_initConditionalVarLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#537-557" title="Go to source code">initConditionalVarLoop</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="initTestLoop" id="_initTestLoop">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_initTestLoop">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#559-576" title="Go to source code">initTestLoop</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="skipTo" id="_skipTo">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_skipTo">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#578-591" title="Go to source code">skipTo</a>( <span>mixed <var>$val</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>skip to the next element containing in $val</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$val</var></dt>
|
|
<dd><code>mixed</code><br>$val search value</dd>
|
|
</dl></div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="findTokenType" id="_findTokenType">
|
|
|
|
<td class="attributes"><code>
|
|
protected
|
|
integer
|
|
|
|
</code>
|
|
</td>
|
|
|
|
<td class="name"><div>
|
|
<a class="anchor" href="#_findTokenType">#</a>
|
|
<code><a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#595-645" title="Go to source code">findTokenType</a>( <span>mixed <var>$token</var></span> )</code>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>This function search if tag is knowing by Tpex and return is int code.</p>
|
|
|
|
<p>An exception is thrown if token is unknown by Tpex</p>
|
|
|
|
|
|
|
|
<h4>Parameters</h4>
|
|
<div class="list"><dl>
|
|
<dt><var>$token</var></dt>
|
|
<dd><code>mixed</code><br>$token the token to find</dd>
|
|
</dl></div>
|
|
|
|
<h4>Returns</h4>
|
|
<div class="list">
|
|
<code>integer</code><br />
|
|
</div>
|
|
|
|
<h4>Throws</h4>
|
|
<div class="list">
|
|
<code><code><a href="class-Thelia.Tpex.Exception.TokenNotFoundException.html">Thelia\Tpex\Exception\TokenNotFoundException</a></code></code><br />
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table class="summary" id="properties">
|
|
<caption>Properties summary</caption>
|
|
<tr data-order="in_comment" id="$in_comment">
|
|
<td class="attributes"><code>
|
|
protected
|
|
mixed
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#43" title="Go to source code"><var>$in_comment</var></a>
|
|
</td>
|
|
<td class="value"><code></code></td>
|
|
<td class="description"><div>
|
|
<a href="#$in_comment" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="request" id="$request">
|
|
<td class="attributes"><code>
|
|
protected
|
|
Symfony\Component\HttpFoundation\Request
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#45-48" title="Go to source code"><var>$request</var></a>
|
|
</td>
|
|
<td class="value"><code></code></td>
|
|
<td class="description"><div>
|
|
<a href="#$request" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="dispatcher" id="$dispatcher">
|
|
<td class="attributes"><code>
|
|
protected
|
|
Symfony\Component\EventDispatcher\EventDispatcherInterface
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#50-53" title="Go to source code"><var>$dispatcher</var></a>
|
|
</td>
|
|
<td class="value"><code></code></td>
|
|
<td class="description"><div>
|
|
<a href="#$dispatcher" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="tags" id="$tags">
|
|
<td class="attributes"><code>
|
|
protected
|
|
array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#55-77" title="Go to source code"><var>$tags</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>(
|
|
<span class="php-quote">"THELIA_"</span> => TpexToken::OSL,
|
|
<span class="php-quote">"/THELIA_"</span> => TpexToken::CSL,
|
|
<span class="php-quote">"TEST_"</span> => TpexToken::OTL,
|
|
<span class="php-quote">"/TEST_"</span> => TpexToken::ETL,
|
|
<span class="php-quote">"//TEST_"</span> => TpexToken::CTL,
|
|
<span class="php-quote">"T_"</span> => TpexToken::OCL,
|
|
<span class="php-quote">"/T_"</span> => TpexToken::ECL,
|
|
<span class="php-quote">"//T_"</span> => TpexToken::CCL,
|
|
<span class="php-quote">"REM"</span> => TpexToken::OCM,
|
|
<span class="php-quote">"/REM"</span> => TpexToken::CCM,
|
|
<span class="php-quote">"REPEAT_"</span> => TpexToken::ORL,
|
|
<span class="php-quote">"/REPEAT_"</span> => TpexToken::CRL,
|
|
<span class="php-quote">"T:"</span> => TpexToken::OCVL,
|
|
<span class="php-quote">"/T:"</span> => TpexToken::ECVL,
|
|
<span class="php-quote">"//T:"</span> => TpexToken::CCVL
|
|
)</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$tags" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
<p>$tags</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>$tags</p>
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="tokens" id="$tokens">
|
|
<td class="attributes"><code>
|
|
protected
|
|
array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#79" title="Go to source code"><var>$tokens</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$tokens" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="loop" id="$loop">
|
|
<td class="attributes"><code>
|
|
protected
|
|
Array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#81-97" title="Go to source code"><var>$loop</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$loop" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
<p>associative array containing information for loop execution</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for loop execution</p>
|
|
|
|
<p>key is loop name value is the class implementing/extending base loop
|
|
classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$loop = array( "product" => "Thelia\Loop\Product", "category" =>
|
|
"Thelia\Loop\Category", "myLoop" => "My\Own\Loop" );</p>
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="filter" id="$filter">
|
|
<td class="attributes"><code>
|
|
protected
|
|
Array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#99-115" title="Go to source code"><var>$filter</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$filter" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
<p>associative array containing information for filter execution</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for filter execution</p>
|
|
|
|
<p>key is filter name value is the class implementing/extending base filter
|
|
classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$filter = array( "upperCase" => "Thelia\Filter\UpperCase", "lowerCase"
|
|
=> "Thelia\Filter\LowerCase", "myFilter" => "My\Own\Filter" );</p>
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="testLoop" id="$testLoop">
|
|
<td class="attributes"><code>
|
|
protected
|
|
Array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#117-132" title="Go to source code"><var>$testLoop</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$testLoop" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
<p>associative array containing information for loop test execution</p>
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
<p>associative array containing information for loop test execution</p>
|
|
|
|
<p>key is test loop name value is the class implementing/extending base test
|
|
loop classes</p>
|
|
|
|
<p>ex :</p>
|
|
|
|
<p>$testLoop = array( "equal" => "Thelia\testLoop\Equal", "myTestLoop" =>
|
|
"My\Own\TestLoop" );</p>
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="loopIdStack" id="$loopIdStack">
|
|
<td class="attributes"><code>
|
|
protected
|
|
array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#134" title="Go to source code"><var>$loopIdStack</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$loopIdStack" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
<tr data-order="currentLoopStack" id="$currentLoopStack">
|
|
<td class="attributes"><code>
|
|
protected
|
|
array
|
|
</code></td>
|
|
|
|
<td class="name">
|
|
<a href="source-class-Thelia.Tpex.Tokenizer.Tokenize.html#136" title="Go to source code"><var>$currentLoopStack</var></a>
|
|
</td>
|
|
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
|
|
<td class="description"><div>
|
|
<a href="#$currentLoopStack" class="anchor">#</a>
|
|
|
|
<div class="description short">
|
|
|
|
</div>
|
|
|
|
<div class="description detailed hidden">
|
|
|
|
|
|
</div>
|
|
</div></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|