add composer.lock and new documentation

This commit is contained in:
Manuel Raynaud
2013-02-18 14:19:17 +01:00
parent 93cbea2952
commit cfb2d00b13
33 changed files with 4453 additions and 2992 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,5 @@ local/config/runtime-conf.xml
cache/*
log/*
bin/*
composer.lock
local/session/*
coverage

589
composer.lock generated Normal file
View File

@@ -0,0 +1,589 @@
{
"hash": "bec45b0a4848cd287809e9a0a83b6d51",
"packages": [
{
"name": "ircmaxell/password-compat",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/ircmaxell/password_compat.git",
"reference": "fc4ad2d46794ace07cbf04fe654a8bf546fc6764"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/fc4ad2d46794ace07cbf04fe654a8bf546fc6764",
"reference": "fc4ad2d46794ace07cbf04fe654a8bf546fc6764",
"shasum": ""
},
"time": "2013-02-04 16:45:02",
"type": "library",
"autoload": {
"files": [
"lib/password.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Anthony Ferrara",
"email": "ircmaxell@php.net",
"homepage": "http://blog.ircmaxell.com"
}
],
"description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash",
"homepage": "https://github.com/ircmaxell/password_compat",
"keywords": [
"password",
"hashing"
]
},
{
"name": "phing/phing",
"version": "2.4.14",
"source": {
"type": "git",
"url": "https://github.com/phingofficial/phing",
"reference": "2.4.14"
},
"dist": {
"type": "zip",
"url": "https://github.com/phingofficial/phing/archive/2.4.14.zip",
"reference": "2.4.14",
"shasum": ""
},
"require": {
"php": ">=5.2.0"
},
"time": "2012-11-29 21:23:47",
"bin": [
"bin/phing"
],
"type": "library",
"autoload": {
"classmap": [
"classes/phing/"
]
},
"notification-url": "https://packagist.org/downloads/",
"include-path": [
"classes"
],
"license": [
"LGPL3"
],
"authors": [
{
"name": "Michiel Rook",
"email": "mrook@php.net"
},
{
"name": "Phing Community",
"homepage": "http://www.phing.info/trac/wiki/Development/Contributors"
}
],
"description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.",
"homepage": "http://www.phing.info/",
"keywords": [
"build",
"task",
"tool"
]
},
{
"name": "propel/propel1",
"version": "1.6.7",
"source": {
"type": "git",
"url": "https://github.com/propelorm/Propel",
"reference": "1.6.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/propelorm/Propel/zipball/1.6.7",
"reference": "1.6.7",
"shasum": ""
},
"require": {
"php": ">=5.2.4",
"phing/phing": ">=2.4.12,2.4.*"
},
"time": "2012-07-30 00:58:15",
"bin": [
"generator/bin/propel-gen",
"generator/bin/propel-gen.bat"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.6-dev"
}
},
"autoload": {
"classmap": [
"runtime/lib",
"generator/lib"
]
},
"notification-url": "https://packagist.org/downloads/",
"include-path": [
"runtime/lib",
"generator/lib"
],
"license": [
"MIT"
],
"authors": [
{
"name": "William Durand",
"email": "william.durand1@gmail.com",
"homepage": "http://www.willdurand.fr"
}
],
"description": "Propel is an open-source Object-Relational Mapping (ORM) for PHP5.",
"homepage": "http://www.propelorm.org/",
"keywords": [
"database",
"orm",
"persistence",
"Active Record",
"mapping"
]
},
{
"name": "psr/log",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log",
"reference": "1.0.0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/1.0.0",
"reference": "1.0.0",
"shasum": ""
},
"time": "2012-12-21 11:40:51",
"type": "library",
"autoload": {
"psr-0": {
"Psr\\Log\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for logging libraries",
"keywords": [
"log",
"psr",
"psr-3"
]
},
{
"name": "symfony/class-loader",
"version": "v2.1.7",
"target-dir": "Symfony/Component/ClassLoader",
"source": {
"type": "git",
"url": "https://github.com/symfony/ClassLoader",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/ClassLoader/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/finder": "2.1.*"
},
"time": "2013-01-09 08:51:07",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\ClassLoader": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony ClassLoader Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/config",
"version": "v2.1.7",
"target-dir": "Symfony/Component/Config",
"source": {
"type": "git",
"url": "https://github.com/symfony/Config",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/Config/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"time": "2013-01-09 08:51:07",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\Config": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony Config Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/console",
"version": "v2.1.7",
"target-dir": "Symfony/Component/Console",
"source": {
"type": "git",
"url": "https://github.com/symfony/Console",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/Console/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"time": "2013-01-17 15:20:05",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\Console": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony Console Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/dependency-injection",
"version": "v2.1.7",
"target-dir": "Symfony/Component/DependencyInjection",
"source": {
"type": "git",
"url": "https://github.com/symfony/DependencyInjection",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/DependencyInjection/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/yaml": "2.1.*",
"symfony/config": "2.1.*"
},
"suggest": {
"symfony/yaml": "2.1.*",
"symfony/config": "2.1.*"
},
"time": "2013-01-17 21:21:51",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\DependencyInjection": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony DependencyInjection Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/event-dispatcher",
"version": "v2.1.7",
"target-dir": "Symfony/Component/EventDispatcher",
"source": {
"type": "git",
"url": "https://github.com/symfony/EventDispatcher",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/EventDispatcher/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/dependency-injection": "2.1.*"
},
"suggest": {
"symfony/dependency-injection": "2.1.*",
"symfony/http-kernel": "2.1.*"
},
"time": "2013-01-11 00:31:43",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\EventDispatcher": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony EventDispatcher Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/http-foundation",
"version": "v2.1.7",
"target-dir": "Symfony/Component/HttpFoundation",
"source": {
"type": "git",
"url": "https://github.com/symfony/HttpFoundation",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/HttpFoundation/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"time": "2013-01-11 00:31:43",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\HttpFoundation": "",
"SessionHandlerInterface": "Symfony/Component/HttpFoundation/Resources/stubs"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony HttpFoundation Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/http-kernel",
"version": "v2.1.7",
"target-dir": "Symfony/Component/HttpKernel",
"source": {
"type": "git",
"url": "https://github.com/symfony/HttpKernel",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/HttpKernel/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"symfony/event-dispatcher": "2.1.*",
"symfony/http-foundation": "2.1.*"
},
"require-dev": {
"symfony/browser-kit": "2.1.*",
"symfony/class-loader": "2.1.*",
"symfony/config": "2.1.*",
"symfony/console": "2.1.*",
"symfony/dependency-injection": "2.1.*",
"symfony/finder": "2.1.*",
"symfony/process": "2.1.*",
"symfony/routing": "2.1.*"
},
"suggest": {
"symfony/browser-kit": "2.1.*",
"symfony/class-loader": "2.1.*",
"symfony/config": "2.1.*",
"symfony/console": "2.1.*",
"symfony/dependency-injection": "2.1.*",
"symfony/finder": "2.1.*"
},
"time": "2013-01-17 16:21:47",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\HttpKernel": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony HttpKernel Component",
"homepage": "http://symfony.com"
},
{
"name": "symfony/routing",
"version": "v2.1.7",
"target-dir": "Symfony/Component/Routing",
"source": {
"type": "git",
"url": "https://github.com/symfony/Routing",
"reference": "v2.1.7"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/Routing/archive/v2.1.7.zip",
"reference": "v2.1.7",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/config": "2.1.*",
"symfony/yaml": "2.1.*",
"symfony/http-kernel": "2.1.*",
"doctrine/common": ">=2.2,<2.4-dev"
},
"suggest": {
"symfony/config": "2.1.*",
"symfony/yaml": "2.1.*",
"doctrine/common": ">=2.2,<2.4-dev"
},
"time": "2013-01-09 08:51:07",
"type": "library",
"autoload": {
"psr-0": {
"Symfony\\Component\\Routing": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony Routing Component",
"homepage": "http://symfony.com"
}
],
"packages-dev": null,
"aliases": [
],
"minimum-stability": "stable",
"stability-flags": {
"ircmaxell/password-compat": 20,
"psr/log": 20
}
}

View File

@@ -139,9 +139,11 @@ class Parser implements ParserInterface
public function loadParser()
{
$content = $this->openFile($this->getRequest());
$content = $this->parseInclude($content);
}
public function openFile(Request $request)
protected function openFile(Request $request)
{
$file = $request->attributes->get('_view');
$fileName = THELIA_TEMPLATE_DIR . rtrim($this->template, "/") . "/" . $file . ".html";
@@ -150,8 +152,14 @@ class Parser implements ParserInterface
} else {
throw new ResourceNotFoundException(sprintf("%s file not found in %s template", $file, $this->template));
}
return $content;
}
protected function parseInclude($content)
{
}
}

View File

@@ -153,7 +153,7 @@
<b>Author:</b>
Manuel Raynaud &lt;<a
href="mailto:mraynadu&#64;openstudio.fr">mraynadu&#64;<!---->openstudio.fr</a>&gt;<br />
<b>Located at</b> <a href="source-class-Thelia.Controller.DefaultController.html#29-55" title="Go to source code">core/lib/Thelia/Controller/DefaultController.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Controller.DefaultController.html#29-56" title="Go to source code">core/lib/Thelia/Controller/DefaultController.php</a><br />
</div>
@@ -171,7 +171,7 @@ href="mailto:mraynadu&#64;openstudio.fr">mraynadu&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#_noAction">#</a>
<code><a href="source-class-Thelia.Controller.DefaultController.html#37-54" title="Go to source code">noAction</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span> )</code>
<code><a href="source-class-Thelia.Controller.DefaultController.html#37-55" title="Go to source code">noAction</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span> )</code>
<div class="description short">

View File

@@ -141,7 +141,7 @@
<b>Author:</b>
Manuel Raynaud &lt;<a
href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&gt;<br />
<b>Located at</b> <a href="source-class-Thelia.Core.Event.TheliaEvents.html#27-43" title="Go to source code">core/lib/Thelia/Core/Event/TheliaEvents.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.Event.TheliaEvents.html#27-50" title="Go to source code">core/lib/Thelia/Core/Event/TheliaEvents.php</a><br />
</div>
@@ -180,6 +180,32 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
Thelia\Routing\Matcher\ActionMatcher)</p>
</div>
</div></td>
</tr>
<tr data-order="INCLUSION" id="INCLUSION">
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Core.Event.TheliaEvents.html#44-49" title="Go to source code"><b>INCLUSION</b></a>
</code></td>
<td class="value"><code><span class="php-quote">&quot;thelia.include&quot;</span></code></td>
<td class="description"><div>
<a href="#INCLUSION" class="anchor">#</a>
<div class="description short">
<p>INCLUDE event</p>
</div>
<div class="description detailed hidden">
<p>INCLUDE event</p>
<p>Send before starting thelia inclusion</p>
</div>
</div></td>
</tr>

View File

@@ -152,7 +152,7 @@
href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&gt;<br />
<b>TODO:</b>
Look if it's possible to block this definition in dependency-injection<br />
<b>Located at</b> <a href="source-class-Thelia.Core.EventListener.ViewListener.html#32-85" title="Go to source code">core/lib/Thelia/Core/EventListener/ViewListener.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.EventListener.ViewListener.html#35-123" title="Go to source code">core/lib/Thelia/Core/EventListener/ViewListener.php</a><br />
</div>
@@ -170,7 +170,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#44-51" title="Go to source code">__construct</a>( <span><code><a href="class-Thelia.Core.Template.ParserInterface.html">Thelia\Core\Template\ParserInterface</a></code> <var>$parser</var></span> )</code>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#51-58" title="Go to source code">__construct</a>( <span>Symfony\Component\DependencyInjection\ContainerInterface <var>$container</var></span> )</code>
<div class="description short">
@@ -182,7 +182,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$parser</var></dt>
<dt><var>$container</var></dt>
<dd><code><code><a href="class-Thelia.Core.Template.ParserInterface.html">Thelia\Core\Template\ParserInterface</a></code></code><br>$parser</dd>
</dl></div>
@@ -204,7 +204,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#_onKernelView">#</a>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#53-70" title="Go to source code">onKernelView</a>( <span>Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent <var>$event</var></span> )</code>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#60-83" title="Go to source code">onKernelView</a>( <span>Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent <var>$event</var></span> )</code>
<div class="description short">
@@ -228,6 +228,64 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
</div>
</div></td>
</tr>
<tr data-order="beforeKernelView" id="_beforeKernelView">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_beforeKernelView">#</a>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#85-93" title="Go to source code">beforeKernelView</a>( <span>Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent <var>$event</var></span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="findView" id="_findView">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_findView">#</a>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#95-105" title="Go to source code">findView</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
@@ -242,7 +300,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#_getSubscribedEvents">#</a>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#73-84" title="Go to source code">getSubscribedEvents</a>( )</code>
<code><a href="source-class-Thelia.Core.EventListener.ViewListener.html#108-122" title="Go to source code">getSubscribedEvents</a>( )</code>
<div class="description short">

View File

@@ -156,7 +156,7 @@ parser</p>
<b>Author:</b>
Manuel Raynaud &lt;<a
href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&gt;<br />
<b>Located at</b> <a href="source-class-Thelia.Core.Template.Parser.html#31-118" title="Go to source code">core/lib/Thelia/Core/Template/Parser.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.Template.Parser.html#33-159" title="Go to source code">core/lib/Thelia/Core/Template/Parser.php</a><br />
</div>
@@ -174,7 +174,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#57-66" title="Go to source code">__construct</a>( <span>Symfony\Component\DependencyInjection\ContainerInterface <var>$container</var></span> )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#62-71" title="Go to source code">__construct</a>( <span>Symfony\Component\DependencyInjection\ContainerInterface <var>$container</var></span> )</code>
<div class="description short">
@@ -194,6 +194,72 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
</div>
</div></td>
</tr>
<tr data-order="getRequest" id="_getRequest">
<td class="attributes"><code>
public
Symfony\Component\HttpFoundation\Request
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getRequest">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#73-80" title="Go to source code">getRequest</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Returns</h4>
<div class="list">
<code>Symfony\Component\HttpFoundation\Request</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="getDispatcher" id="_getDispatcher">
<td class="attributes"><code>
public
Symfony\Component\EventDispatcher\EventDispatcher
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getDispatcher">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#82-89" title="Go to source code">getDispatcher</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Returns</h4>
<div class="list">
<code>Symfony\Component\EventDispatcher\EventDispatcher</code><br />
</div>
</div>
</div></td>
</tr>
@@ -208,7 +274,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#_getContent">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#68-81" title="Go to source code">getContent</a>( )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#91-103" title="Go to source code">getContent</a>( )</code>
<div class="description short">
@@ -242,7 +308,7 @@ or the content of the response</p>
<td class="name"><div>
<a class="anchor" href="#_setContent">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#83-92" title="Go to source code">setContent</a>( <span>string|Symfony\Component\HttpFoundation\Response <var>$content</var></span> )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#105-114" title="Go to source code">setContent</a>( <span>string|Symfony\Component\HttpFoundation\Response <var>$content</var></span> )</code>
<div class="description short">
@@ -281,7 +347,7 @@ directly</p>
<td class="name"><div>
<a class="anchor" href="#_getStatus">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#94-101" title="Go to source code">getStatus</a>( )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#116-123" title="Go to source code">getStatus</a>( )</code>
<div class="description short">
@@ -316,7 +382,7 @@ directly</p>
<td class="name"><div>
<a class="anchor" href="#_setStatus">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#103-112" title="Go to source code">setStatus</a>( <span>integer <var>$status</var></span> )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#125-134" title="Go to source code">setStatus</a>( <span>integer <var>$status</var></span> )</code>
<div class="description short">
@@ -354,7 +420,40 @@ directly</p>
<td class="name"><div>
<a class="anchor" href="#_loadParser">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#114-116" title="Go to source code">loadParser</a>( )</code>
<code><a href="source-class-Thelia.Core.Template.Parser.html#136-142" title="Go to source code">loadParser</a>( )</code>
<div class="description short">
<p>Main parser function, load the parser</p>
</div>
<div class="description detailed hidden">
<p>Main parser function, load the parser</p>
</div>
</div></td>
</tr>
<tr data-order="openFile" id="_openFile">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_openFile">#</a>
<code><a href="source-class-Thelia.Core.Template.Parser.html#144-155" title="Go to source code">openFile</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span> )</code>
<div class="description short">
@@ -387,7 +486,7 @@ directly</p>
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Core.Template.Parser.html#42" title="Go to source code"><b>PREFIXE</b></a>
<a href="source-class-Thelia.Core.Template.Parser.html#44" title="Go to source code"><b>PREFIXE</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'prx'</span></code></td>
<td class="description"><div>
@@ -407,7 +506,7 @@ directly</p>
<td class="attributes"><code>boolean</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Core.Template.Parser.html#44" title="Go to source code"><b>SHOW_TIME</b></a>
<a href="source-class-Thelia.Core.Template.Parser.html#46" title="Go to source code"><b>SHOW_TIME</b></a>
</code></td>
<td class="value"><code><span class="php-keyword1">true</span></code></td>
<td class="description"><div>
@@ -427,7 +526,7 @@ directly</p>
<td class="attributes"><code>boolean</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Core.Template.Parser.html#45" title="Go to source code"><b>ALLOW_DEBUG</b></a>
<a href="source-class-Thelia.Core.Template.Parser.html#47" title="Go to source code"><b>ALLOW_DEBUG</b></a>
</code></td>
<td class="value"><code><span class="php-keyword1">true</span></code></td>
<td class="description"><div>
@@ -447,7 +546,7 @@ directly</p>
<td class="attributes"><code>boolean</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Core.Template.Parser.html#46" title="Go to source code"><b>USE_CACHE</b></a>
<a href="source-class-Thelia.Core.Template.Parser.html#48" title="Go to source code"><b>USE_CACHE</b></a>
</code></td>
<td class="value"><code><span class="php-keyword1">true</span></code></td>
<td class="description"><div>
@@ -477,7 +576,7 @@ directly</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Core.Template.Parser.html#48-52" title="Go to source code"><var>$container</var></a>
<a href="source-class-Thelia.Core.Template.Parser.html#51-55" title="Go to source code"><var>$container</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -500,7 +599,7 @@ directly</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Core.Template.Parser.html#54" title="Go to source code"><var>$content</var></a>
<a href="source-class-Thelia.Core.Template.Parser.html#57" title="Go to source code"><var>$content</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -523,7 +622,7 @@ directly</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Core.Template.Parser.html#55" title="Go to source code"><var>$status</var></a>
<a href="source-class-Thelia.Core.Template.Parser.html#58" title="Go to source code"><var>$status</var></a>
</td>
<td class="value"><code><span class="php-num">200</span></code></td>
<td class="description"><div>
@@ -536,6 +635,29 @@ directly</p>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="template" id="$template">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="source-class-Thelia.Core.Template.Parser.html#60" title="Go to source code"><var>$template</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;default&quot;</span></code></td>
<td class="description"><div>
<a href="#$template" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>

View File

@@ -146,7 +146,7 @@ Symfony\Component\HttpKernel\Kernel
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Core.html">Core</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.Thelia.html#42-172" title="Go to source code">core/lib/Thelia/Core/Thelia.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.Thelia.html#45-200" title="Go to source code">core/lib/Thelia/Core/Thelia.php</a><br />
</div>
@@ -164,7 +164,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_init">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#45-50" title="Go to source code">init</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#48-53" title="Go to source code">init</a>( )</code>
<div class="description short">
@@ -193,7 +193,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_initPropel">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#52-69" title="Go to source code">initPropel</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#55-72" title="Go to source code">initPropel</a>( )</code>
<div class="description short">
@@ -222,7 +222,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_loadConfiguration">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#71-80" title="Go to source code">loadConfiguration</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#74-83" title="Go to source code">loadConfiguration</a>( )</code>
<div class="description short">
@@ -239,6 +239,37 @@ Symfony\Component\HttpKernel\Kernel
</div>
</div></td>
</tr>
<tr data-order="boot" id="_boot">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_boot">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#95-108" title="Go to source code">boot</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<p>boot parent kernel and after current kernel</p>
</div>
</div></td>
</tr>
@@ -253,7 +284,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_getCacheDir">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#82-97" title="Go to source code">getCacheDir</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#110-125" title="Go to source code">getCacheDir</a>( )</code>
<div class="description short">
@@ -293,7 +324,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_getLogDir">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#99-113" title="Go to source code">getLogDir</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#127-141" title="Go to source code">getLogDir</a>( )</code>
<div class="description short">
@@ -333,7 +364,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_registerBundles">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#132-155" title="Go to source code">registerBundles</a>( )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#160-183" title="Go to source code">registerBundles</a>( )</code>
<div class="description short">
@@ -372,7 +403,7 @@ Symfony\Component\HttpKernel\Kernel
<td class="name"><div>
<a class="anchor" href="#_registerContainerConfiguration">#</a>
<code><a href="source-class-Thelia.Core.Thelia.html#157-170" title="Go to source code">registerContainerConfiguration</a>( <span>Symfony\Component\Config\Loader\LoaderInterface <var>$loader</var></span> )</code>
<code><a href="source-class-Thelia.Core.Thelia.html#185-198" title="Go to source code">registerContainerConfiguration</a>( <span>Symfony\Component\Config\Loader\LoaderInterface <var>$loader</var></span> )</code>
<div class="description short">

View File

@@ -149,7 +149,7 @@ Symfony\Component\HttpKernel\HttpKernel
<b>Author:</b>
Manuel Raynaud &lt;<a
href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&gt;<br />
<b>Located at</b> <a href="source-class-Thelia.Core.TheliaHttpKernel.html#33-82" title="Go to source code">core/lib/Thelia/Core/TheliaHttpKernel.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Core.TheliaHttpKernel.html#36-113" title="Go to source code">core/lib/Thelia/Core/TheliaHttpKernel.php</a><br />
</div>
@@ -167,7 +167,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-Thelia.Core.TheliaHttpKernel.html#39-44" title="Go to source code">__construct</a>( <span>Symfony\Component\EventDispatcher\EventDispatcherInterface <var>$dispatcher</var></span>, <span>Symfony\Component\DependencyInjection\ContainerInterface <var>$container</var></span>, <span>Symfony\Component\HttpKernel\Controller\ControllerResolverInterface <var>$controllerResolver</var></span> )</code>
<code><a href="source-class-Thelia.Core.TheliaHttpKernel.html#42-47" title="Go to source code">__construct</a>( <span>Symfony\Component\EventDispatcher\EventDispatcherInterface <var>$dispatcher</var></span>, <span>Symfony\Component\DependencyInjection\ContainerInterface <var>$container</var></span>, <span>Symfony\Component\HttpKernel\Controller\ControllerResolverInterface <var>$controllerResolver</var></span> )</code>
<div class="description short">
@@ -196,7 +196,7 @@ href="mailto:mraynaud&#64;openstudio.fr">mraynaud&#64;<!---->openstudio.fr</a>&g
<td class="name"><div>
<a class="anchor" href="#_handle">#</a>
<code><a href="source-class-Thelia.Core.TheliaHttpKernel.html#46-81" title="Go to source code">handle</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span>, <span>integer <var>$type</var> = Thelia\Core\HttpKernelInterface::MASTER_REQUEST</span>, <span>Boolean <var>$catch</var> = <span class="php-keyword1">true</span></span> )</code>
<code><a href="source-class-Thelia.Core.TheliaHttpKernel.html#49-84" title="Go to source code">handle</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span>, <span>integer <var>$type</var> = Thelia\Core\HttpKernelInterface::MASTER_REQUEST</span>, <span>Boolean <var>$catch</var> = <span class="php-keyword1">true</span></span> )</code>
<div class="description short">
@@ -239,6 +239,35 @@ HttpKernelInterface::SUB_REQUEST)</dd>
</div>
</div>
</div></td>
</tr>
<tr data-order="initSession" id="_initSession">
<td class="attributes"><code>
protected
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_initSession">#</a>
<code><a href="source-class-Thelia.Core.TheliaHttpKernel.html#86-112" title="Go to source code">initSession</a>( <span>Symfony\Component\HttpFoundation\Request <var>$request</var></span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>

View File

@@ -464,7 +464,7 @@ ModelCriteria
<td class="name"><div>
<a class="anchor" href="#_read">#</a>
<code><a href="source-class-Thelia.Model.ConfigQuery.html#21-26" title="Go to source code">read</a>( <span>mixed <var>$search</var></span>, <span>mixed <var>$default</var></span> )</code>
<code><a href="source-class-Thelia.Model.ConfigQuery.html#21-26" title="Go to source code">read</a>( <span>mixed <var>$search</var></span>, <span>mixed <var>$default</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">

View File

@@ -477,6 +477,7 @@ BaseObject
<a href="class-Thelia.Model.om.BaseLang.html#_getCode">getCode()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getCreatedAt">getCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getId">getId()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getLocale">getLocale()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getPeer">getPeer()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getPrimaryKey">getPrimaryKey()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_getTitle">getTitle()</a>,
@@ -496,6 +497,7 @@ BaseObject
<a href="class-Thelia.Model.om.BaseLang.html#_setCode">setCode()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setCreatedAt">setCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setId">setId()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setLocale">setLocale()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setPrimaryKey">setPrimaryKey()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setTitle">setTitle()</a>,
<a href="class-Thelia.Model.om.BaseLang.html#_setUpdatedAt">setUpdatedAt()</a>,
@@ -535,6 +537,7 @@ BaseObject
<a href="class-Thelia.Model.om.BaseLang.html#$code"><var>$code</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$created_at"><var>$created_at</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$id"><var>$id</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$locale"><var>$locale</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$peer"><var>$peer</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$startCopy"><var>$startCopy</var></a>,
<a href="class-Thelia.Model.om.BaseLang.html#$title"><var>$title</var></a>,

View File

@@ -498,6 +498,7 @@ exist in the output directory.</p>
<a href="class-Thelia.Model.om.BaseLangPeer.html#DATABASE_NAME"><b>DATABASE_NAME</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#DEFAULT_STRING_FORMAT"><b>DEFAULT_STRING_FORMAT</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#ID"><b>ID</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#LOCALE"><b>LOCALE</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#NUM_COLUMNS"><b>NUM_COLUMNS</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#NUM_HYDRATE_COLUMNS"><b>NUM_HYDRATE_COLUMNS</b></a>,
<a href="class-Thelia.Model.om.BaseLangPeer.html#NUM_LAZY_LOAD_COLUMNS"><b>NUM_LAZY_LOAD_COLUMNS</b></a>,

View File

@@ -462,6 +462,7 @@ ModelCriteria
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByCode">filterByCode()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByCreatedAt">filterByCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterById">filterById()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByLocale">filterByLocale()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByPrimaryKey">filterByPrimaryKey()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByPrimaryKeys">filterByPrimaryKeys()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#_filterByTitle">filterByTitle()</a>,
@@ -492,6 +493,7 @@ ModelCriteria
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByCode">findByCode()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByCreatedAt">findByCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findById">findById()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByLocale">findByLocale()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByTitle">findByTitle()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByUpdatedAt">findByUpdatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findByUrl">findByUrl()</a>,
@@ -500,6 +502,7 @@ ModelCriteria
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByCode">findOneByCode()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByCreatedAt">findOneByCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneById">findOneById()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByLocale">findOneByLocale()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByTitle">findOneByTitle()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByUpdatedAt">findOneByUpdatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_findOneByUrl">findOneByUrl()</a>,
@@ -508,6 +511,7 @@ ModelCriteria
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByCode">groupByCode()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByCreatedAt">groupByCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupById">groupById()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByLocale">groupByLocale()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByTitle">groupByTitle()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByUpdatedAt">groupByUpdatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_groupByUrl">groupByUrl()</a>,
@@ -517,6 +521,7 @@ ModelCriteria
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByCode">orderByCode()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByCreatedAt">orderByCreatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderById">orderById()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByLocale">orderByLocale()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByTitle">orderByTitle()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByUpdatedAt">orderByUpdatedAt()</a>,
<a href="class-Thelia.Model.om.BaseLangQuery.html#m_orderByUrl">orderByUrl()</a>,

View File

@@ -249,7 +249,7 @@ TableMap
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Model.html">Model</a>\<a href="namespace-Thelia.Model.map.html">map</a><br />
<b>Package:</b> propel\generator\Thelia\Model\map<br />
<b>Located at</b> <a href="source-class-Thelia.Model.map.LangTableMap.html#9-75" title="Go to source code">core/lib/Thelia/Model/map/LangTableMap.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Model.map.LangTableMap.html#9-76" title="Go to source code">core/lib/Thelia/Model/map/LangTableMap.php</a><br />
</div>
@@ -267,7 +267,7 @@ TableMap
<td class="name"><div>
<a class="anchor" href="#_initialize">#</a>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#29-53" title="Go to source code">initialize</a>( )</code>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#29-54" title="Go to source code">initialize</a>( )</code>
<div class="description short">
@@ -306,7 +306,7 @@ initialized by this method since they are lazy loaded</p>
<td class="name"><div>
<a class="anchor" href="#_buildRelations">#</a>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#55-60" title="Go to source code">buildRelations</a>( )</code>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#56-61" title="Go to source code">buildRelations</a>( )</code>
<div class="description short">
@@ -339,7 +339,7 @@ initialized by this method since they are lazy loaded</p>
<td class="name"><div>
<a class="anchor" href="#_getBehaviors">#</a>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#62-73" title="Go to source code">getBehaviors</a>( )</code>
<code><a href="source-class-Thelia.Model.map.LangTableMap.html#63-74" title="Go to source code">getBehaviors</a>( )</code>
<div class="description short">

View File

@@ -438,7 +438,7 @@ BaseObject
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Model.html">Model</a>\<a href="namespace-Thelia.Model.om.html">om</a><br />
<b>Package:</b> propel\generator\Thelia\Model\om<br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLang.html#20-1181" title="Go to source code">core/lib/Thelia/Model/om/BaseLang.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLang.html#20-1236" title="Go to source code">core/lib/Thelia/Model/om/BaseLang.php</a><br />
</div>
@@ -456,7 +456,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getId">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#104-112" title="Go to source code">getId</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#110-118" title="Go to source code">getId</a>( )</code>
<div class="description short">
@@ -493,7 +493,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#114-122" title="Go to source code">getTitle</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#120-128" title="Go to source code">getTitle</a>( )</code>
<div class="description short">
@@ -530,7 +530,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#124-132" title="Go to source code">getCode</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#130-138" title="Go to source code">getCode</a>( )</code>
<div class="description short">
@@ -553,6 +553,43 @@ BaseObject
</div>
</div></td>
</tr>
<tr data-order="getLocale" id="_getLocale">
<td class="attributes"><code>
public
string
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#140-148" title="Go to source code">getLocale</a>( )</code>
<div class="description short">
<p>Get the [locale] column value.</p>
</div>
<div class="description detailed hidden">
<p>Get the [locale] column value.</p>
<h4>Returns</h4>
<div class="list">
<code>string</code><br />
</div>
</div>
</div></td>
</tr>
@@ -567,7 +604,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#134-142" title="Go to source code">getUrl</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#150-158" title="Go to source code">getUrl</a>( )</code>
<div class="description short">
@@ -604,7 +641,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#144-152" title="Go to source code">getByDefault</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#160-168" title="Go to source code">getByDefault</a>( )</code>
<div class="description short">
@@ -641,7 +678,7 @@ BaseObject
<td class="name"><div>
<a class="anchor" href="#_getCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#154-189" title="Go to source code">getCreatedAt</a>( <span>string <var>$format</var> = <span class="php-quote">'Y-m-d H:i:s'</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#170-205" title="Go to source code">getCreatedAt</a>( <span>string <var>$format</var> = <span class="php-quote">'Y-m-d H:i:s'</span></span> )</code>
<div class="description short">
@@ -689,7 +726,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_getUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#191-226" title="Go to source code">getUpdatedAt</a>( <span>string <var>$format</var> = <span class="php-quote">'Y-m-d H:i:s'</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#207-242" title="Go to source code">getUpdatedAt</a>( <span>string <var>$format</var> = <span class="php-quote">'Y-m-d H:i:s'</span></span> )</code>
<div class="description short">
@@ -737,7 +774,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setId">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#228-247" title="Go to source code">setId</a>( <span>integer <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#244-263" title="Go to source code">setId</a>( <span>integer <var>$v</var></span> )</code>
<div class="description short">
@@ -779,7 +816,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#249-268" title="Go to source code">setTitle</a>( <span>string <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#265-284" title="Go to source code">setTitle</a>( <span>string <var>$v</var></span> )</code>
<div class="description short">
@@ -821,7 +858,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#270-289" title="Go to source code">setCode</a>( <span>string <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#286-305" title="Go to source code">setCode</a>( <span>string <var>$v</var></span> )</code>
<div class="description short">
@@ -849,6 +886,48 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
</div>
</div></td>
</tr>
<tr data-order="setLocale" id="_setLocale">
<td class="attributes"><code>
public
<code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_setLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#307-326" title="Go to source code">setLocale</a>( <span>string <var>$v</var></span> )</code>
<div class="description short">
<p>Set the value of [locale] column.</p>
</div>
<div class="description detailed hidden">
<p>Set the value of [locale] column.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$v</var></dt>
<dd><code>string</code><br>$v new value</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code></code><br>The current object (for fluent API support)<br />
</div>
</div>
</div></td>
</tr>
@@ -863,7 +942,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#291-310" title="Go to source code">setUrl</a>( <span>string <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#328-347" title="Go to source code">setUrl</a>( <span>string <var>$v</var></span> )</code>
<div class="description short">
@@ -905,7 +984,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#312-331" title="Go to source code">setByDefault</a>( <span>integer <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#349-368" title="Go to source code">setByDefault</a>( <span>integer <var>$v</var></span> )</code>
<div class="description short">
@@ -947,7 +1026,7 @@ if column is null, and 0 if column value is 0000-00-00 00:00:00<br />
<td class="name"><div>
<a class="anchor" href="#_setCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#333-354" title="Go to source code">setCreatedAt</a>( <span>mixed <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#370-391" title="Go to source code">setCreatedAt</a>( <span>mixed <var>$v</var></span> )</code>
<div class="description short">
@@ -992,7 +1071,7 @@ null.</dd>
<td class="name"><div>
<a class="anchor" href="#_setUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#356-377" title="Go to source code">setUpdatedAt</a>( <span>mixed <var>$v</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#393-414" title="Go to source code">setUpdatedAt</a>( <span>mixed <var>$v</var></span> )</code>
<div class="description short">
@@ -1037,7 +1116,7 @@ null.</dd>
<td class="name"><div>
<a class="anchor" href="#_hasOnlyDefaultValues">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#379-391" title="Go to source code">hasOnlyDefaultValues</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#416-428" title="Go to source code">hasOnlyDefaultValues</a>( )</code>
<div class="description short">
@@ -1079,7 +1158,7 @@ an object is both modified _and_ has some values set which are non-default.</p>
<td class="name"><div>
<a class="anchor" href="#_hydrate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#393-431" title="Go to source code">hydrate</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span>, <span>boolean <var>$rehydrate</var> = <span class="php-keyword1">false</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#430-469" title="Go to source code">hydrate</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span>, <span>boolean <var>$rehydrate</var> = <span class="php-keyword1">false</span></span> )</code>
<div class="description short">
@@ -1137,7 +1216,7 @@ with.</dd>
<td class="name"><div>
<a class="anchor" href="#_ensureConsistency">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#433-449" title="Go to source code">ensureConsistency</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#471-487" title="Go to source code">ensureConsistency</a>( )</code>
<div class="description short">
@@ -1182,7 +1261,7 @@ in case your model changes.</p>
<td class="name"><div>
<a class="anchor" href="#_reload">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#451-489" title="Go to source code">reload</a>( <span>boolean <var>$deep</var> = <span class="php-keyword1">false</span></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#489-527" title="Go to source code">reload</a>( <span>boolean <var>$deep</var> = <span class="php-keyword1">false</span></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1231,7 +1310,7 @@ set.</p>
<td class="name"><div>
<a class="anchor" href="#_delete">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#491-528" title="Go to source code">delete</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#529-566" title="Go to source code">delete</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1279,7 +1358,7 @@ set.</p>
<td class="name"><div>
<a class="anchor" href="#_save">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#530-593" title="Go to source code">save</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#568-631" title="Go to source code">save</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1335,7 +1414,7 @@ save() operations.<br />
<td class="name"><div>
<a class="anchor" href="#_doSave">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#595-628" title="Go to source code">doSave</a>( <span>PropelPDO <var>$con</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#633-666" title="Go to source code">doSave</a>( <span>PropelPDO <var>$con</var></span> )</code>
<div class="description short">
@@ -1389,7 +1468,7 @@ save() operations.<br />
<td class="name"><div>
<a class="anchor" href="#_doInsert">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#630-718" title="Go to source code">doInsert</a>( <span>PropelPDO <var>$con</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#668-762" title="Go to source code">doInsert</a>( <span>PropelPDO <var>$con</var></span> )</code>
<div class="description short">
@@ -1435,7 +1514,7 @@ save() operations.<br />
<td class="name"><div>
<a class="anchor" href="#_doUpdate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#720-732" title="Go to source code">doUpdate</a>( <span>PropelPDO <var>$con</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#764-776" title="Go to source code">doUpdate</a>( <span>PropelPDO <var>$con</var></span> )</code>
<div class="description short">
@@ -1477,7 +1556,7 @@ save() operations.<br />
<td class="name"><div>
<a class="anchor" href="#_getValidationFailures">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#740-750" title="Go to source code">getValidationFailures</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#784-794" title="Go to source code">getValidationFailures</a>( )</code>
<div class="description short">
@@ -1520,7 +1599,7 @@ validate().</p>
<td class="name"><div>
<a class="anchor" href="#_validate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#752-775" title="Go to source code">validate</a>( <span>mixed <var>$columns</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#796-819" title="Go to source code">validate</a>( <span>mixed <var>$columns</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1572,7 +1651,7 @@ columns are validated.</p>
<td class="name"><div>
<a class="anchor" href="#_doValidate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#777-806" title="Go to source code">doValidate</a>( <span>array <var>$columns</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#821-850" title="Go to source code">doValidate</a>( <span>array <var>$columns</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1620,7 +1699,7 @@ validations pass; array of <code>ValidationFailed</code> objets otherwise.<br />
<td class="name"><div>
<a class="anchor" href="#_getByName">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#808-824" title="Go to source code">getByName</a>( <span>string <var>$name</var></span>, <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#852-868" title="Go to source code">getByName</a>( <span>string <var>$name</var></span>, <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<div class="description short">
@@ -1666,7 +1745,7 @@ BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME
<td class="name"><div>
<a class="anchor" href="#_getByPosition">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#826-861" title="Go to source code">getByPosition</a>( <span>integer <var>$pos</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#870-908" title="Go to source code">getByPosition</a>( <span>integer <var>$pos</var></span> )</code>
<div class="description short">
@@ -1710,7 +1789,7 @@ Zero-based.</p>
<td class="name"><div>
<a class="anchor" href="#_toArray">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#863-895" title="Go to source code">toArray</a>( <span>string <var>$keyType</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span>, <span>boolean <var>$includeLazyLoadColumns</var> = <span class="php-keyword1">true</span></span>, <span>array <var>$alreadyDumpedObjects</var> = <span class="php-keyword1">array</span>()</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#910-943" title="Go to source code">toArray</a>( <span>string <var>$keyType</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span>, <span>boolean <var>$includeLazyLoadColumns</var> = <span class="php-keyword1">true</span></span>, <span>array <var>$alreadyDumpedObjects</var> = <span class="php-keyword1">array</span>()</span> )</code>
<div class="description short">
@@ -1762,7 +1841,7 @@ Defaults to true.</dd>
<td class="name"><div>
<a class="anchor" href="#_setByName">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#897-913" title="Go to source code">setByName</a>( <span>string <var>$name</var></span>, <span>mixed <var>$value</var></span>, <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#945-961" title="Go to source code">setByName</a>( <span>string <var>$name</var></span>, <span>mixed <var>$value</var></span>, <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<div class="description short">
@@ -1806,7 +1885,7 @@ BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME
<td class="name"><div>
<a class="anchor" href="#_setByPosition">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#915-948" title="Go to source code">setByPosition</a>( <span>integer <var>$pos</var></span>, <span>mixed <var>$value</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#963-999" title="Go to source code">setByPosition</a>( <span>integer <var>$pos</var></span>, <span>mixed <var>$value</var></span> )</code>
<div class="description short">
@@ -1848,7 +1927,7 @@ Zero-based.</p>
<td class="name"><div>
<a class="anchor" href="#_fromArray">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#950-978" title="Go to source code">fromArray</a>( <span>array <var>$arr</var></span>, <span>string <var>$keyType</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1001-1030" title="Go to source code">fromArray</a>( <span>array <var>$arr</var></span>, <span>string <var>$keyType</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<div class="description short">
@@ -1898,7 +1977,7 @@ default key type is the column's BasePeer::TYPE_PHPNAME</p>
<td class="name"><div>
<a class="anchor" href="#_buildCriteria">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#980-998" title="Go to source code">buildCriteria</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1032-1051" title="Go to source code">buildCriteria</a>( )</code>
<div class="description short">
@@ -1937,7 +2016,7 @@ object.</p>
<td class="name"><div>
<a class="anchor" href="#_buildPkeyCriteria">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1000-1014" title="Go to source code">buildPkeyCriteria</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1053-1067" title="Go to source code">buildPkeyCriteria</a>( )</code>
<div class="description short">
@@ -1977,7 +2056,7 @@ of whether or not they have been modified.</p>
<td class="name"><div>
<a class="anchor" href="#_getPrimaryKey">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1016-1023" title="Go to source code">getPrimaryKey</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1069-1076" title="Go to source code">getPrimaryKey</a>( )</code>
<div class="description short">
@@ -2014,7 +2093,7 @@ of whether or not they have been modified.</p>
<td class="name"><div>
<a class="anchor" href="#_setPrimaryKey">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1025-1034" title="Go to source code">setPrimaryKey</a>( <span>integer <var>$key</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1078-1087" title="Go to source code">setPrimaryKey</a>( <span>integer <var>$key</var></span> )</code>
<div class="description short">
@@ -2052,7 +2131,7 @@ of whether or not they have been modified.</p>
<td class="name"><div>
<a class="anchor" href="#_isPrimaryKeyNull">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1036-1044" title="Go to source code">isPrimaryKeyNull</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1089-1097" title="Go to source code">isPrimaryKeyNull</a>( )</code>
<div class="description short">
@@ -2089,7 +2168,7 @@ of whether or not they have been modified.</p>
<td class="name"><div>
<a class="anchor" href="#_copyInto">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1046-1069" title="Go to source code">copyInto</a>( <span>object <var>$copyObj</var></span>, <span>boolean <var>$deepCopy</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$makeNew</var> = <span class="php-keyword1">true</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1099-1123" title="Go to source code">copyInto</a>( <span>object <var>$copyObj</var></span>, <span>boolean <var>$deepCopy</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$makeNew</var> = <span class="php-keyword1">true</span></span> )</code>
<div class="description short">
@@ -2138,7 +2217,7 @@ referrers) objects.</p>
<td class="name"><div>
<a class="anchor" href="#_copy">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1071-1091" title="Go to source code">copy</a>( <span>boolean <var>$deepCopy</var> = <span class="php-keyword1">false</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1125-1145" title="Go to source code">copy</a>( <span>boolean <var>$deepCopy</var> = <span class="php-keyword1">false</span></span> )</code>
<div class="description short">
@@ -2191,7 +2270,7 @@ referrers) objects.</p>
<td class="name"><div>
<a class="anchor" href="#_getPeer">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1093-1109" title="Go to source code">getPeer</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1147-1163" title="Go to source code">getPeer</a>( )</code>
<div class="description short">
@@ -2233,7 +2312,7 @@ behavior.</p>
<td class="name"><div>
<a class="anchor" href="#_clear">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1111-1129" title="Go to source code">clear</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1165-1184" title="Go to source code">clear</a>( )</code>
<div class="description short">
@@ -2266,7 +2345,7 @@ behavior.</p>
<td class="name"><div>
<a class="anchor" href="#_clearAllReferences">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1131-1145" title="Go to source code">clearAllReferences</a>( <span>boolean <var>$deep</var> = <span class="php-keyword1">false</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1186-1200" title="Go to source code">clearAllReferences</a>( <span>boolean <var>$deep</var> = <span class="php-keyword1">false</span></span> )</code>
<div class="description short">
@@ -2310,7 +2389,7 @@ when using Propel in certain daemon or large-volumne/high-memory operations.</p>
<td class="name"><div>
<a class="anchor" href="#___toString">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1147-1155" title="Go to source code">__toString</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1202-1210" title="Go to source code">__toString</a>( )</code>
<div class="description short">
@@ -2347,7 +2426,7 @@ when using Propel in certain daemon or large-volumne/high-memory operations.</p>
<td class="name"><div>
<a class="anchor" href="#_isAlreadyInSave">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1157-1165" title="Go to source code">isAlreadyInSave</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1212-1220" title="Go to source code">isAlreadyInSave</a>( )</code>
<div class="description short">
@@ -2384,7 +2463,7 @@ when using Propel in certain daemon or large-volumne/high-memory operations.</p>
<td class="name"><div>
<a class="anchor" href="#_keepUpdateDateUnchanged">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1169-1179" title="Go to source code">keepUpdateDateUnchanged</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLang.html#1224-1234" title="Go to source code">keepUpdateDateUnchanged</a>( )</code>
<div class="description short">
@@ -2588,6 +2667,33 @@ on a class that calling code may not be able to identify.</p>
<p>The value for the code field.</p>
</div>
</div></td>
</tr>
<tr data-order="locale" id="$locale">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#66-70" title="Go to source code"><var>$locale</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$locale" class="anchor">#</a>
<div class="description short">
<p>The value for the locale field.</p>
</div>
<div class="description detailed hidden">
<p>The value for the locale field.</p>
</div>
</div></td>
</tr>
@@ -2598,7 +2704,7 @@ on a class that calling code may not be able to identify.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#66-70" title="Go to source code"><var>$url</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#72-76" title="Go to source code"><var>$url</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -2625,7 +2731,7 @@ on a class that calling code may not be able to identify.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#72-76" title="Go to source code"><var>$by_default</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#78-82" title="Go to source code"><var>$by_default</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -2652,7 +2758,7 @@ on a class that calling code may not be able to identify.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#78-82" title="Go to source code"><var>$created_at</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#84-88" title="Go to source code"><var>$created_at</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -2679,7 +2785,7 @@ on a class that calling code may not be able to identify.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#84-88" title="Go to source code"><var>$updated_at</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#90-94" title="Go to source code"><var>$updated_at</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
@@ -2706,7 +2812,7 @@ on a class that calling code may not be able to identify.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#90-95" title="Go to source code"><var>$alreadyInSave</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#96-101" title="Go to source code"><var>$alreadyInSave</var></a>
</td>
<td class="value"><code><span class="php-keyword1">false</span></code></td>
<td class="description"><div>
@@ -2735,7 +2841,7 @@ object which falls in this transaction.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#97-102" title="Go to source code"><var>$alreadyInValidation</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#103-108" title="Go to source code"><var>$alreadyInValidation</var></a>
</td>
<td class="value"><code><span class="php-keyword1">false</span></code></td>
<td class="description"><div>
@@ -2764,7 +2870,7 @@ another object which falls in this transaction.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLang.html#734-738" title="Go to source code"><var>$validationFailures</var></a>
<a href="source-class-Thelia.Model.om.BaseLang.html#778-782" title="Go to source code"><var>$validationFailures</var></a>
</td>
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
<td class="description"><div>

View File

@@ -424,7 +424,7 @@ table.</p>
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Model.html">Model</a>\<a href="namespace-Thelia.Model.om.html">om</a><br />
<b>Package:</b> propel\generator\Thelia\Model\om<br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLangPeer.html#16-788" title="Go to source code">core/lib/Thelia/Model/om/BaseLangPeer.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLangPeer.html#16-793" title="Go to source code">core/lib/Thelia/Model/om/BaseLangPeer.php</a><br />
</div>
@@ -442,7 +442,7 @@ table.</p>
<td class="name"><div>
<a class="anchor" href="#_translateFieldName">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#110-129" title="Go to source code">translateFieldName</a>( <span>string <var>$name</var></span>, <span>string <var>$fromType</var></span>, <span>string <var>$toType</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#113-132" title="Go to source code">translateFieldName</a>( <span>string <var>$name</var></span>, <span>string <var>$fromType</var></span>, <span>string <var>$toType</var></span> )</code>
<div class="description short">
@@ -494,7 +494,7 @@ BasePeer::TYPE_NUM</dd>
<td class="name"><div>
<a class="anchor" href="#_getFieldNames">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#131-147" title="Go to source code">getFieldNames</a>( <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#134-150" title="Go to source code">getFieldNames</a>( <span>string <var>$type</var> = Thelia\Model\om\BasePeer::TYPE_PHPNAME</span> )</code>
<div class="description short">
@@ -542,7 +542,7 @@ BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM</dd>
<td class="name"><div>
<a class="anchor" href="#_alias">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#149-164" title="Go to source code">alias</a>( <span>string <var>$alias</var></span>, <span>string <var>$column</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#152-167" title="Go to source code">alias</a>( <span>string <var>$alias</var></span>, <span>string <var>$column</var></span> )</code>
<div class="description short">
@@ -597,7 +597,7 @@ class="php-quote">&quot;alias1&quot;</span>, TablePeer::PRIMARY_KEY_COLUMN), Tab
<td class="name"><div>
<a class="anchor" href="#_addSelectColumns">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#166-197" title="Go to source code">addSelectColumns</a>( <span>Criteria <var>$criteria</var></span>, <span>string <var>$alias</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#169-202" title="Go to source code">addSelectColumns</a>( <span>Criteria <var>$criteria</var></span>, <span>string <var>$alias</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -645,7 +645,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doCount">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#199-242" title="Go to source code">doCount</a>( <span>Criteria <var>$criteria</var></span>, <span>boolean <var>$distinct</var> = <span class="php-keyword1">false</span></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#204-247" title="Go to source code">doCount</a>( <span>Criteria <var>$criteria</var></span>, <span>boolean <var>$distinct</var> = <span class="php-keyword1">false</span></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -692,7 +692,7 @@ Criteria-&gt;setDistinct() instead.</dd>
<td class="name"><div>
<a class="anchor" href="#_doSelectOne">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#243-262" title="Go to source code">doSelectOne</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#248-267" title="Go to source code">doSelectOne</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -741,7 +741,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doSelect">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#263-275" title="Go to source code">doSelect</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#268-280" title="Go to source code">doSelect</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -790,7 +790,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doSelectStmt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#276-305" title="Go to source code">doSelectStmt</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#281-310" title="Go to source code">doSelectStmt</a>( <span>Criteria <var>$criteria</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -848,7 +848,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_addInstanceToPool">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#306-326" title="Go to source code">addInstanceToPool</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$obj</var></span>, <span>string <var>$key</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#311-331" title="Go to source code">addInstanceToPool</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$obj</var></span>, <span>string <var>$key</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -895,7 +895,7 @@ already calculated externally).</dd>
<td class="name"><div>
<a class="anchor" href="#_removeInstanceFromPool">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#328-356" title="Go to source code">removeInstanceFromPool</a>( <span>mixed <var>$value</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#333-361" title="Go to source code">removeInstanceFromPool</a>( <span>mixed <var>$value</var></span> )</code>
<div class="description short">
@@ -943,7 +943,7 @@ exist.</p>
<td class="name"><div>
<a class="anchor" href="#_getInstanceFromPool">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#358-377" title="Go to source code">getInstanceFromPool</a>( <span>string <var>$key</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#363-382" title="Go to source code">getInstanceFromPool</a>( <span>string <var>$key</var></span> )</code>
<div class="description short">
@@ -996,7 +996,7 @@ pooling has been disabled.<br />
<td class="name"><div>
<a class="anchor" href="#_clearInstancePool">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#379-387" title="Go to source code">clearInstancePool</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#384-392" title="Go to source code">clearInstancePool</a>( )</code>
<div class="description short">
@@ -1029,7 +1029,7 @@ pooling has been disabled.<br />
<td class="name"><div>
<a class="anchor" href="#_clearRelatedInstancePool">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#389-395" title="Go to source code">clearRelatedInstancePool</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#394-400" title="Go to source code">clearRelatedInstancePool</a>( )</code>
<div class="description short">
@@ -1064,7 +1064,7 @@ foreign key with ON DELETE CASCADE</p>
<td class="name"><div>
<a class="anchor" href="#_getPrimaryKeyHashFromRow">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#397-415" title="Go to source code">getPrimaryKeyHashFromRow</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#402-420" title="Go to source code">getPrimaryKeyHashFromRow</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<div class="description short">
@@ -1115,7 +1115,7 @@ are all null.<br />
<td class="name"><div>
<a class="anchor" href="#_getPrimaryKeyFromRow">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#417-430" title="Go to source code">getPrimaryKeyFromRow</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#422-435" title="Go to source code">getPrimaryKeyFromRow</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<div class="description short">
@@ -1165,7 +1165,7 @@ returned.</p>
<td class="name"><div>
<a class="anchor" href="#_populateObjects">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#432-463" title="Go to source code">populateObjects</a>( <span><code><a href="class-PDOStatement.html">PDOStatement</a></code> <var>$stmt</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#437-468" title="Go to source code">populateObjects</a>( <span><code><a href="class-PDOStatement.html">PDOStatement</a></code> <var>$stmt</var></span> )</code>
<div class="description short">
@@ -1205,7 +1205,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_populateObject">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#464-489" title="Go to source code">populateObject</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#469-494" title="Go to source code">populateObject</a>( <span>array <var>$row</var></span>, <span>integer <var>$startcol</var> = <span class="php-num">0</span></span> )</code>
<div class="description short">
@@ -1256,7 +1256,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_getTableMap">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#491-501" title="Go to source code">getTableMap</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#496-506" title="Go to source code">getTableMap</a>( )</code>
<div class="description short">
@@ -1300,7 +1300,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_buildTableMap">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#503-512" title="Go to source code">buildTableMap</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#508-517" title="Go to source code">buildTableMap</a>( )</code>
<div class="description short">
@@ -1333,7 +1333,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_getOMClass">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#514-523" title="Go to source code">getOMClass</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#519-528" title="Go to source code">getOMClass</a>( )</code>
<div class="description short">
@@ -1370,7 +1370,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doInsert">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#525-566" title="Go to source code">doInsert</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#530-571" title="Go to source code">doInsert</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1420,7 +1420,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doUpdate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#568-605" title="Go to source code">doUpdate</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#573-610" title="Go to source code">doUpdate</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1471,7 +1471,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doDeleteAll">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#607-637" title="Go to source code">doDeleteAll</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#612-642" title="Go to source code">doDeleteAll</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1517,7 +1517,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doDelete">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#639-696" title="Go to source code">doDelete</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#644-701" title="Go to source code">doDelete</a>( <span>mixed <var>$values</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1571,7 +1571,7 @@ PropelException.<br />
<td class="name"><div>
<a class="anchor" href="#_doValidate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#698-733" title="Go to source code">doValidate</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$obj</var></span>, <span>mixed <var>$cols</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#703-738" title="Go to source code">doValidate</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$obj</var></span>, <span>mixed <var>$cols</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1621,7 +1621,7 @@ are validated.</p>
<td class="name"><div>
<a class="anchor" href="#_retrieveByPK">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#735-759" title="Go to source code">retrieveByPK</a>( <span>integer <var>$pk</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#740-764" title="Go to source code">retrieveByPK</a>( <span>integer <var>$pk</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1665,7 +1665,7 @@ are validated.</p>
<td class="name"><div>
<a class="anchor" href="#_retrieveByPKs">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#761-786" title="Go to source code">retrieveByPKs</a>( <span>array <var>$pks</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangPeer.html#766-791" title="Go to source code">retrieveByPKs</a>( <span>array <var>$pks</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1816,7 +1816,7 @@ PropelException.<br />
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#38-39" title="Go to source code"><b>NUM_COLUMNS</b></a>
</code></td>
<td class="value"><code><span class="php-num">7</span></code></td>
<td class="value"><code><span class="php-num">8</span></code></td>
<td class="description"><div>
<a href="#NUM_COLUMNS" class="anchor">#</a>
@@ -1864,7 +1864,7 @@ PropelException.<br />
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#44-45" title="Go to source code"><b>NUM_HYDRATE_COLUMNS</b></a>
</code></td>
<td class="value"><code><span class="php-num">7</span></code></td>
<td class="value"><code><span class="php-num">8</span></code></td>
<td class="description"><div>
<a href="#NUM_HYDRATE_COLUMNS" class="anchor">#</a>
@@ -1951,6 +1951,30 @@ PropelException.<br />
<p>the column name for the CODE field</p>
</div>
</div></td>
</tr>
<tr data-order="LOCALE" id="LOCALE">
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#56-57" title="Go to source code"><b>LOCALE</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'lang.LOCALE'</span></code></td>
<td class="description"><div>
<a href="#LOCALE" class="anchor">#</a>
<div class="description short">
<p>the column name for the LOCALE field</p>
</div>
<div class="description detailed hidden">
<p>the column name for the LOCALE field</p>
</div>
</div></td>
</tr>
@@ -1958,7 +1982,7 @@ PropelException.<br />
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#56-57" title="Go to source code"><b>URL</b></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#59-60" title="Go to source code"><b>URL</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'lang.URL'</span></code></td>
<td class="description"><div>
@@ -1982,7 +2006,7 @@ PropelException.<br />
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#59-60" title="Go to source code"><b>BY_DEFAULT</b></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#62-63" title="Go to source code"><b>BY_DEFAULT</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'lang.BY_DEFAULT'</span></code></td>
<td class="description"><div>
@@ -2006,7 +2030,7 @@ PropelException.<br />
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#62-63" title="Go to source code"><b>CREATED_AT</b></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#65-66" title="Go to source code"><b>CREATED_AT</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'lang.CREATED_AT'</span></code></td>
<td class="description"><div>
@@ -2030,7 +2054,7 @@ PropelException.<br />
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#65-66" title="Go to source code"><b>UPDATED_AT</b></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#68-69" title="Go to source code"><b>UPDATED_AT</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'lang.UPDATED_AT'</span></code></td>
<td class="description"><div>
@@ -2054,7 +2078,7 @@ PropelException.<br />
<td class="attributes"><code>string</code></td>
<td class="name"><code>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#68-69" title="Go to source code"><b>DEFAULT_STRING_FORMAT</b></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#71-72" title="Go to source code"><b>DEFAULT_STRING_FORMAT</b></a>
</code></td>
<td class="value"><code><span class="php-quote">'YAML'</span></code></td>
<td class="description"><div>
@@ -2088,7 +2112,7 @@ PropelException.<br />
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#71-77" title="Go to source code"><var>$instances</var></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#74-80" title="Go to source code"><var>$instances</var></a>
</td>
<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
<td class="description"><div>
@@ -2119,15 +2143,15 @@ queries.</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#80-93" title="Go to source code"><var>$fieldNames</var></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#83-96" title="Go to source code"><var>$fieldNames</var></a>
</td>
<td class="value"><code><span class="php-keyword1">array</span> (
BasePeer::TYPE_PHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'Id'</span>, <span class="php-quote">'Title'</span>, <span class="php-quote">'Code'</span>, <span class="php-quote">'Url'</span>, <span class="php-quote">'ByDefault'</span>, <span class="php-quote">'CreatedAt'</span>, <span class="php-quote">'UpdatedAt'</span>, ),
BasePeer::TYPE_STUDLYPHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span>, <span class="php-quote">'title'</span>, <span class="php-quote">'code'</span>, <span class="php-quote">'url'</span>, <span class="php-quote">'byDefault'</span>, <span class="php-quote">'createdAt'</span>, <span class="php-quote">'updatedAt'</span>, ),
BasePeer::TYPE_COLNAME =&gt; <span class="php-keyword1">array</span> (LangPeer::ID, LangPeer::TITLE, LangPeer::CODE, LangPeer::URL, LangPeer::BY_DEFAULT, LangPeer::CREATED_AT, LangPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'ID'</span>, <span class="php-quote">'TITLE'</span>, <span class="php-quote">'CODE'</span>, <span class="php-quote">'URL'</span>, <span class="php-quote">'BY_DEFAULT'</span>, <span class="php-quote">'CREATED_AT'</span>, <span class="php-quote">'UPDATED_AT'</span>, ),
BasePeer::TYPE_FIELDNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span>, <span class="php-quote">'title'</span>, <span class="php-quote">'code'</span>, <span class="php-quote">'url'</span>, <span class="php-quote">'by_default'</span>, <span class="php-quote">'created_at'</span>, <span class="php-quote">'updated_at'</span>, ),
BasePeer::TYPE_NUM =&gt; <span class="php-keyword1">array</span> (<span class="php-num">0</span>, <span class="php-num">1</span>, <span class="php-num">2</span>, <span class="php-num">3</span>, <span class="php-num">4</span>, <span class="php-num">5</span>, <span class="php-num">6</span>, )
BasePeer::TYPE_PHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'Id'</span>, <span class="php-quote">'Title'</span>, <span class="php-quote">'Code'</span>, <span class="php-quote">'Locale'</span>, <span class="php-quote">'Url'</span>, <span class="php-quote">'ByDefault'</span>, <span class="php-quote">'CreatedAt'</span>, <span class="php-quote">'UpdatedAt'</span>, ),
BasePeer::TYPE_STUDLYPHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span>, <span class="php-quote">'title'</span>, <span class="php-quote">'code'</span>, <span class="php-quote">'locale'</span>, <span class="php-quote">'url'</span>, <span class="php-quote">'byDefault'</span>, <span class="php-quote">'createdAt'</span>, <span class="php-quote">'updatedAt'</span>, ),
BasePeer::TYPE_COLNAME =&gt; <span class="php-keyword1">array</span> (LangPeer::ID, LangPeer::TITLE, LangPeer::CODE, LangPeer::LOCALE, LangPeer::URL, LangPeer::BY_DEFAULT, LangPeer::CREATED_AT, LangPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'ID'</span>, <span class="php-quote">'TITLE'</span>, <span class="php-quote">'CODE'</span>, <span class="php-quote">'LOCALE'</span>, <span class="php-quote">'URL'</span>, <span class="php-quote">'BY_DEFAULT'</span>, <span class="php-quote">'CREATED_AT'</span>, <span class="php-quote">'UPDATED_AT'</span>, ),
BasePeer::TYPE_FIELDNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span>, <span class="php-quote">'title'</span>, <span class="php-quote">'code'</span>, <span class="php-quote">'locale'</span>, <span class="php-quote">'url'</span>, <span class="php-quote">'by_default'</span>, <span class="php-quote">'created_at'</span>, <span class="php-quote">'updated_at'</span>, ),
BasePeer::TYPE_NUM =&gt; <span class="php-keyword1">array</span> (<span class="php-num">0</span>, <span class="php-num">1</span>, <span class="php-num">2</span>, <span class="php-num">3</span>, <span class="php-num">4</span>, <span class="php-num">5</span>, <span class="php-num">6</span>, <span class="php-num">7</span>, )
)</code></td>
<td class="description"><div>
<a href="#$fieldNames" class="anchor">#</a>
@@ -2156,15 +2180,15 @@ LangPeer::$fieldNames[LangPeer::TYPE_PHPNAME][0] = 'Id'</p>
</code></td>
<td class="name">
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#95-108" title="Go to source code"><var>$fieldKeys</var></a>
<a href="source-class-Thelia.Model.om.BaseLangPeer.html#98-111" title="Go to source code"><var>$fieldKeys</var></a>
</td>
<td class="value"><code><span class="php-keyword1">array</span> (
BasePeer::TYPE_PHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'Id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'Title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'Code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'Url'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'ByDefault'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'CreatedAt'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'UpdatedAt'</span> =&gt; <span class="php-num">6</span>, ),
BasePeer::TYPE_STUDLYPHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'url'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'byDefault'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'createdAt'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'updatedAt'</span> =&gt; <span class="php-num">6</span>, ),
BasePeer::TYPE_COLNAME =&gt; <span class="php-keyword1">array</span> (LangPeer::ID =&gt; <span class="php-num">0</span>, LangPeer::TITLE =&gt; <span class="php-num">1</span>, LangPeer::CODE =&gt; <span class="php-num">2</span>, LangPeer::URL =&gt; <span class="php-num">3</span>, LangPeer::BY_DEFAULT =&gt; <span class="php-num">4</span>, LangPeer::CREATED_AT =&gt; <span class="php-num">5</span>, LangPeer::UPDATED_AT =&gt; <span class="php-num">6</span>, ),
BasePeer::TYPE_RAW_COLNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'ID'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'TITLE'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'CODE'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'URL'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'BY_DEFAULT'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'CREATED_AT'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'UPDATED_AT'</span> =&gt; <span class="php-num">6</span>, ),
BasePeer::TYPE_FIELDNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'url'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'by_default'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'created_at'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'updated_at'</span> =&gt; <span class="php-num">6</span>, ),
BasePeer::TYPE_NUM =&gt; <span class="php-keyword1">array</span> (<span class="php-num">0</span>, <span class="php-num">1</span>, <span class="php-num">2</span>, <span class="php-num">3</span>, <span class="php-num">4</span>, <span class="php-num">5</span>, <span class="php-num">6</span>, )
BasePeer::TYPE_PHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'Id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'Title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'Code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'Locale'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'Url'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'ByDefault'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'CreatedAt'</span> =&gt; <span class="php-num">6</span>, <span class="php-quote">'UpdatedAt'</span> =&gt; <span class="php-num">7</span>, ),
BasePeer::TYPE_STUDLYPHPNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'locale'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'url'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'byDefault'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'createdAt'</span> =&gt; <span class="php-num">6</span>, <span class="php-quote">'updatedAt'</span> =&gt; <span class="php-num">7</span>, ),
BasePeer::TYPE_COLNAME =&gt; <span class="php-keyword1">array</span> (LangPeer::ID =&gt; <span class="php-num">0</span>, LangPeer::TITLE =&gt; <span class="php-num">1</span>, LangPeer::CODE =&gt; <span class="php-num">2</span>, LangPeer::LOCALE =&gt; <span class="php-num">3</span>, LangPeer::URL =&gt; <span class="php-num">4</span>, LangPeer::BY_DEFAULT =&gt; <span class="php-num">5</span>, LangPeer::CREATED_AT =&gt; <span class="php-num">6</span>, LangPeer::UPDATED_AT =&gt; <span class="php-num">7</span>, ),
BasePeer::TYPE_RAW_COLNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'ID'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'TITLE'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'CODE'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'LOCALE'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'URL'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'BY_DEFAULT'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'CREATED_AT'</span> =&gt; <span class="php-num">6</span>, <span class="php-quote">'UPDATED_AT'</span> =&gt; <span class="php-num">7</span>, ),
BasePeer::TYPE_FIELDNAME =&gt; <span class="php-keyword1">array</span> (<span class="php-quote">'id'</span> =&gt; <span class="php-num">0</span>, <span class="php-quote">'title'</span> =&gt; <span class="php-num">1</span>, <span class="php-quote">'code'</span> =&gt; <span class="php-num">2</span>, <span class="php-quote">'locale'</span> =&gt; <span class="php-num">3</span>, <span class="php-quote">'url'</span> =&gt; <span class="php-num">4</span>, <span class="php-quote">'by_default'</span> =&gt; <span class="php-num">5</span>, <span class="php-quote">'created_at'</span> =&gt; <span class="php-num">6</span>, <span class="php-quote">'updated_at'</span> =&gt; <span class="php-num">7</span>, ),
BasePeer::TYPE_NUM =&gt; <span class="php-keyword1">array</span> (<span class="php-num">0</span>, <span class="php-num">1</span>, <span class="php-num">2</span>, <span class="php-num">3</span>, <span class="php-num">4</span>, <span class="php-num">5</span>, <span class="php-num">6</span>, <span class="php-num">7</span>, )
)</code></td>
<td class="description"><div>
<a href="#$fieldKeys" class="anchor">#</a>

View File

@@ -436,7 +436,7 @@ ModelCriteria
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Model.html">Model</a>\<a href="namespace-Thelia.Model.om.html">om</a><br />
<b>Package:</b> propel\generator\Thelia\Model\om<br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLangQuery.html#17-560" title="Go to source code">core/lib/Thelia/Model/om/BaseLangQuery.php</a><br />
<b>Located at</b> <a href="source-class-Thelia.Model.om.BaseLangQuery.html#17-593" title="Go to source code">core/lib/Thelia/Model/om/BaseLangQuery.php</a><br />
</div>
@@ -454,7 +454,7 @@ ModelCriteria
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#65-75" title="Go to source code">__construct</a>( <span>string <var>$dbName</var> = <span class="php-quote">'thelia'</span></span>, <span>string <var>$modelName</var> = <span class="php-quote">'Thelia\\Model\\Lang'</span></span>, <span>string <var>$modelAlias</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#69-79" title="Go to source code">__construct</a>( <span>string <var>$dbName</var> = <span class="php-quote">'thelia'</span></span>, <span>string <var>$modelName</var> = <span class="php-quote">'Thelia\\Model\\Lang'</span></span>, <span>string <var>$modelAlias</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -496,7 +496,7 @@ ModelCriteria
<td class="name"><div>
<a class="anchor" href="#_create">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#77-99" title="Go to source code">create</a>( <span>string <var>$modelAlias</var> = <span class="php-keyword1">null</span></span>, <span><code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code>|Criteria <var>$criteria</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#81-103" title="Go to source code">create</a>( <span>string <var>$modelAlias</var> = <span class="php-keyword1">null</span></span>, <span><code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code>|Criteria <var>$criteria</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -540,7 +540,7 @@ ModelCriteria
<td class="name"><div>
<a class="anchor" href="#_findPk">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#101-135" title="Go to source code">findPk</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#105-139" title="Go to source code">findPk</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -592,7 +592,7 @@ class="php-var">$con</span>);
<td class="name"><div>
<a class="anchor" href="#_findPkSimple">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#137-167" title="Go to source code">findPkSimple</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#141-171" title="Go to source code">findPkSimple</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var></span> )</code>
<div class="description short">
@@ -642,7 +642,7 @@ the object formatter by using generated code.</p>
<td class="name"><div>
<a class="anchor" href="#_findPkComplex">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#169-186" title="Go to source code">findPkComplex</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#173-190" title="Go to source code">findPkComplex</a>( <span>mixed <var>$key</var></span>, <span>PropelPDO <var>$con</var></span> )</code>
<div class="description short">
@@ -686,7 +686,7 @@ the object formatter by using generated code.</p>
<td class="name"><div>
<a class="anchor" href="#_findPks">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#188-210" title="Go to source code">findPks</a>( <span>array <var>$keys</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#192-214" title="Go to source code">findPks</a>( <span>array <var>$keys</var></span>, <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -746,7 +746,7 @@ class="php-var">$con</span>);
<td class="name"><div>
<a class="anchor" href="#_filterByPrimaryKey">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#212-223" title="Go to source code">filterByPrimaryKey</a>( <span>mixed <var>$key</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#216-227" title="Go to source code">filterByPrimaryKey</a>( <span>mixed <var>$key</var></span> )</code>
<div class="description short">
@@ -788,7 +788,7 @@ class="php-var">$con</span>);
<td class="name"><div>
<a class="anchor" href="#_filterByPrimaryKeys">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#225-236" title="Go to source code">filterByPrimaryKeys</a>( <span>array <var>$keys</var></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#229-240" title="Go to source code">filterByPrimaryKeys</a>( <span>array <var>$keys</var></span> )</code>
<div class="description short">
@@ -830,7 +830,7 @@ class="php-var">$con</span>);
<td class="name"><div>
<a class="anchor" href="#_filterById">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#238-263" title="Go to source code">filterById</a>( <span>mixed <var>$id</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#242-267" title="Go to source code">filterById</a>( <span>mixed <var>$id</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -895,7 +895,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#265-292" title="Go to source code">filterByTitle</a>( <span>string <var>$title</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#269-296" title="Go to source code">filterByTitle</a>( <span>string <var>$title</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -952,7 +952,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#294-321" title="Go to source code">filterByCode</a>( <span>string <var>$code</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#298-325" title="Go to source code">filterByCode</a>( <span>string <var>$code</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -995,6 +995,63 @@ Criteria::EQUAL</dd>
</div>
</div></td>
</tr>
<tr data-order="filterByLocale" id="_filterByLocale">
<td class="attributes"><code>
public
<code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_filterByLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#327-354" title="Go to source code">filterByLocale</a>( <span>string <var>$locale</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
<p>Filter the query on the locale column</p>
</div>
<div class="description detailed hidden">
<p>Filter the query on the locale column</p>
<p>Example usage:</p>
<pre>
<span class="php-var">$query</span>-&gt;filterByLocale(<span
class="php-quote">'fooValue'</span>); <span
class="php-comment">// WHERE locale = 'fooValue'</span>
<span
class="php-var">$query</span>-&gt;filterByLocale(<span
class="php-quote">'%fooValue%'</span>); <span
class="php-comment">// WHERE locale LIKE '%fooValue%'</span>
</pre>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$locale</var></dt>
<dd><code>string</code><br>$locale The value to use as filter. Accepts wildcards (* and % trigger a LIKE)</dd>
<dt><var>$comparison</var></dt>
<dd><code>string</code><br>$comparison Operator to use for the column comparison, defaults to
Criteria::EQUAL</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code></code><br>The current query, for fluid interface<br />
</div>
</div>
</div></td>
</tr>
@@ -1009,7 +1066,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#323-350" title="Go to source code">filterByUrl</a>( <span>string <var>$url</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#356-383" title="Go to source code">filterByUrl</a>( <span>string <var>$url</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1066,7 +1123,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#352-391" title="Go to source code">filterByByDefault</a>( <span>mixed <var>$byDefault</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#385-424" title="Go to source code">filterByByDefault</a>( <span>mixed <var>$byDefault</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1131,7 +1188,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#393-434" title="Go to source code">filterByCreatedAt</a>( <span>mixed <var>$createdAt</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#426-467" title="Go to source code">filterByCreatedAt</a>( <span>mixed <var>$createdAt</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1197,7 +1254,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_filterByUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#436-477" title="Go to source code">filterByUpdatedAt</a>( <span>mixed <var>$updatedAt</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#469-510" title="Go to source code">filterByUpdatedAt</a>( <span>mixed <var>$updatedAt</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$comparison</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1263,7 +1320,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_prune">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#479-493" title="Go to source code">prune</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$lang</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#512-526" title="Go to source code">prune</a>( <span><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code> <var>$lang</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -1305,7 +1362,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_recentlyUpdated">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#497-507" title="Go to source code">recentlyUpdated</a>( <span>integer <var>$nbDays</var> = <span class="php-num">7</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#530-540" title="Go to source code">recentlyUpdated</a>( <span>integer <var>$nbDays</var> = <span class="php-num">7</span></span> )</code>
<div class="description short">
@@ -1347,7 +1404,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_lastUpdatedFirst">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#509-517" title="Go to source code">lastUpdatedFirst</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#542-550" title="Go to source code">lastUpdatedFirst</a>( )</code>
<div class="description short">
@@ -1384,7 +1441,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_firstUpdatedFirst">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#519-527" title="Go to source code">firstUpdatedFirst</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#552-560" title="Go to source code">firstUpdatedFirst</a>( )</code>
<div class="description short">
@@ -1421,7 +1478,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_recentlyCreated">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#529-539" title="Go to source code">recentlyCreated</a>( <span>integer <var>$nbDays</var> = <span class="php-num">7</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#562-572" title="Go to source code">recentlyCreated</a>( <span>integer <var>$nbDays</var> = <span class="php-num">7</span></span> )</code>
<div class="description short">
@@ -1463,7 +1520,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_lastCreatedFirst">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#541-549" title="Go to source code">lastCreatedFirst</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#574-582" title="Go to source code">lastCreatedFirst</a>( )</code>
<div class="description short">
@@ -1500,7 +1557,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#_firstCreatedFirst">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#551-559" title="Go to source code">firstCreatedFirst</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#584-592" title="Go to source code">firstCreatedFirst</a>( )</code>
<div class="description short">
@@ -1655,6 +1712,48 @@ Criteria::EQUAL</dd>
</div>
</div></td>
</tr>
<tr data-order="orderByLocale" id="m_orderByLocale">
<td class="attributes"><code>
public
<code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#m_orderByLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#25" title="Go to source code">orderByLocale</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<div class="description short">
<p>Order by the locale column</p>
</div>
<div class="description detailed hidden">
<p>Order by the locale column</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$order</var></dt>
<dd><code>mixed</code><br>$order</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code></code><br />
</div>
</div>
</div></td>
</tr>
@@ -1669,7 +1768,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_orderByUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#25" title="Go to source code">orderByUrl</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#26" title="Go to source code">orderByUrl</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<div class="description short">
@@ -1711,7 +1810,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_orderByByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#26" title="Go to source code">orderByByDefault</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#27" title="Go to source code">orderByByDefault</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<div class="description short">
@@ -1753,7 +1852,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_orderByCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#27" title="Go to source code">orderByCreatedAt</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#28" title="Go to source code">orderByCreatedAt</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<div class="description short">
@@ -1795,7 +1894,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_orderByUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#28" title="Go to source code">orderByUpdatedAt</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#29" title="Go to source code">orderByUpdatedAt</a>( <span>mixed <var>$order</var> = Thelia\Model\om\Criteria::ASC</span> )</code>
<div class="description short">
@@ -1837,7 +1936,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupById">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#30" title="Go to source code">groupById</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#31" title="Go to source code">groupById</a>( )</code>
<div class="description short">
@@ -1874,7 +1973,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#31" title="Go to source code">groupByTitle</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#32" title="Go to source code">groupByTitle</a>( )</code>
<div class="description short">
@@ -1911,7 +2010,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#32" title="Go to source code">groupByCode</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#33" title="Go to source code">groupByCode</a>( )</code>
<div class="description short">
@@ -1934,6 +2033,43 @@ Criteria::EQUAL</dd>
</div>
</div></td>
</tr>
<tr data-order="groupByLocale" id="m_groupByLocale">
<td class="attributes"><code>
public
<code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#m_groupByLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#34" title="Go to source code">groupByLocale</a>( )</code>
<div class="description short">
<p>Group by the locale column</p>
</div>
<div class="description detailed hidden">
<p>Group by the locale column</p>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-Thelia.Model.LangQuery.html">Thelia\Model\LangQuery</a></code></code><br />
</div>
</div>
</div></td>
</tr>
@@ -1948,7 +2084,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#33" title="Go to source code">groupByUrl</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#35" title="Go to source code">groupByUrl</a>( )</code>
<div class="description short">
@@ -1985,7 +2121,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#34" title="Go to source code">groupByByDefault</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#36" title="Go to source code">groupByByDefault</a>( )</code>
<div class="description short">
@@ -2022,7 +2158,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#35" title="Go to source code">groupByCreatedAt</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#37" title="Go to source code">groupByCreatedAt</a>( )</code>
<div class="description short">
@@ -2059,7 +2195,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_groupByUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#36" title="Go to source code">groupByUpdatedAt</a>( )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#38" title="Go to source code">groupByUpdatedAt</a>( )</code>
<div class="description short">
@@ -2096,7 +2232,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_leftJoin">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#38" title="Go to source code">leftJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#40" title="Go to source code">leftJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<div class="description short">
@@ -2138,7 +2274,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_rightJoin">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#39" title="Go to source code">rightJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#41" title="Go to source code">rightJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<div class="description short">
@@ -2180,7 +2316,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_innerJoin">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#40" title="Go to source code">innerJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#42" title="Go to source code">innerJoin</a>( <span>mixed <var>$relation</var> = </span> )</code>
<div class="description short">
@@ -2222,7 +2358,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_findOne">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#42" title="Go to source code">findOne</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#44" title="Go to source code">findOne</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -2264,7 +2400,7 @@ Criteria::EQUAL</dd>
<td class="name"><div>
<a class="anchor" href="#m_findOneOrCreate">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#43" title="Go to source code">findOneOrCreate</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#45" title="Go to source code">findOneOrCreate</a>( <span>PropelPDO <var>$con</var> = <span class="php-keyword1">null</span></span> )</code>
<div class="description short">
@@ -2308,7 +2444,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneById">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#45" title="Go to source code">findOneById</a>( <span>integer <var>$id</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#47" title="Go to source code">findOneById</a>( <span>integer <var>$id</var> = </span> )</code>
<div class="description short">
@@ -2350,7 +2486,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#46" title="Go to source code">findOneByTitle</a>( <span>string <var>$title</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#48" title="Go to source code">findOneByTitle</a>( <span>string <var>$title</var> = </span> )</code>
<div class="description short">
@@ -2392,7 +2528,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#47" title="Go to source code">findOneByCode</a>( <span>string <var>$code</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#49" title="Go to source code">findOneByCode</a>( <span>string <var>$code</var> = </span> )</code>
<div class="description short">
@@ -2420,6 +2556,48 @@ the query conditions when no match is found</p>
</div>
</div></td>
</tr>
<tr data-order="findOneByLocale" id="m_findOneByLocale">
<td class="attributes"><code>
public
<code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#m_findOneByLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#50" title="Go to source code">findOneByLocale</a>( <span>string <var>$locale</var> = </span> )</code>
<div class="description short">
<p>Return the first Lang filtered by the locale column</p>
</div>
<div class="description detailed hidden">
<p>Return the first Lang filtered by the locale column</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$locale</var></dt>
<dd><code>string</code><br>$locale</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-Thelia.Model.Lang.html">Thelia\Model\Lang</a></code></code><br />
</div>
</div>
</div></td>
</tr>
@@ -2434,7 +2612,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#48" title="Go to source code">findOneByUrl</a>( <span>string <var>$url</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#51" title="Go to source code">findOneByUrl</a>( <span>string <var>$url</var> = </span> )</code>
<div class="description short">
@@ -2476,7 +2654,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#49" title="Go to source code">findOneByByDefault</a>( <span>integer <var>$by_default</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#52" title="Go to source code">findOneByByDefault</a>( <span>integer <var>$by_default</var> = </span> )</code>
<div class="description short">
@@ -2518,7 +2696,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#50" title="Go to source code">findOneByCreatedAt</a>( <span>string <var>$created_at</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#53" title="Go to source code">findOneByCreatedAt</a>( <span>string <var>$created_at</var> = </span> )</code>
<div class="description short">
@@ -2560,7 +2738,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findOneByUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#51" title="Go to source code">findOneByUpdatedAt</a>( <span>string <var>$updated_at</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#54" title="Go to source code">findOneByUpdatedAt</a>( <span>string <var>$updated_at</var> = </span> )</code>
<div class="description short">
@@ -2602,7 +2780,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findById">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#53" title="Go to source code">findById</a>( <span>integer <var>$id</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#56" title="Go to source code">findById</a>( <span>integer <var>$id</var> = </span> )</code>
<div class="description short">
@@ -2644,7 +2822,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByTitle">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#54" title="Go to source code">findByTitle</a>( <span>string <var>$title</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#57" title="Go to source code">findByTitle</a>( <span>string <var>$title</var> = </span> )</code>
<div class="description short">
@@ -2686,7 +2864,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByCode">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#55" title="Go to source code">findByCode</a>( <span>string <var>$code</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#58" title="Go to source code">findByCode</a>( <span>string <var>$code</var> = </span> )</code>
<div class="description short">
@@ -2714,6 +2892,48 @@ the query conditions when no match is found</p>
</div>
</div></td>
</tr>
<tr data-order="findByLocale" id="m_findByLocale">
<td class="attributes"><code>
public
array
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#m_findByLocale">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#59" title="Go to source code">findByLocale</a>( <span>string <var>$locale</var> = </span> )</code>
<div class="description short">
<p>Return Lang objects filtered by the locale column</p>
</div>
<div class="description detailed hidden">
<p>Return Lang objects filtered by the locale column</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$locale</var></dt>
<dd><code>string</code><br>$locale</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>array</code><br />
</div>
</div>
</div></td>
</tr>
@@ -2728,7 +2948,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByUrl">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#56" title="Go to source code">findByUrl</a>( <span>string <var>$url</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#60" title="Go to source code">findByUrl</a>( <span>string <var>$url</var> = </span> )</code>
<div class="description short">
@@ -2770,7 +2990,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByByDefault">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#57" title="Go to source code">findByByDefault</a>( <span>integer <var>$by_default</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#61" title="Go to source code">findByByDefault</a>( <span>integer <var>$by_default</var> = </span> )</code>
<div class="description short">
@@ -2812,7 +3032,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByCreatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#58" title="Go to source code">findByCreatedAt</a>( <span>string <var>$created_at</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#62" title="Go to source code">findByCreatedAt</a>( <span>string <var>$created_at</var> = </span> )</code>
<div class="description short">
@@ -2854,7 +3074,7 @@ the query conditions when no match is found</p>
<td class="name"><div>
<a class="anchor" href="#m_findByUpdatedAt">#</a>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#59" title="Go to source code">findByUpdatedAt</a>( <span>string <var>$updated_at</var> = </span> )</code>
<code><a href="source-class-Thelia.Model.om.BaseLangQuery.html#63" title="Go to source code">findByUpdatedAt</a>( <span>string <var>$updated_at</var> = </span> )</code>
<div class="description short">

View File

@@ -175,7 +175,8 @@
</span><span id="56" class="l"><a class="l" href="#56">56: </a> {
</span><span id="57" class="l"><a class="l" href="#57">57: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;dispatcher;
</span><span id="58" class="l"><a class="l" href="#58">58: </a> }
</span><span id="59" class="l"><a class="l" href="#59">59: </a></span>}</code></pre>
</span><span id="59" class="l"><a class="l" href="#59">59: </a>}
</span><span id="60" class="l"><a class="l" href="#60">60: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -155,7 +155,7 @@
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> */</span>
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_addCart" href="#_addCart">addCart</a>(Request <span class="php-var">$request</span>)
</span><span id="38" class="l"><a class="l" href="#38">38: </a> {
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword2">var_dump</span>(<span class="php-var">$this</span>-&gt;getDispatcher()); <span class="php-keyword1">exit</span>;
</span><span id="39" class="l"><a class="l" href="#39">39: </a>
</span><span id="40" class="l"><a class="l" href="#40">40: </a> }
</span><span id="41" class="l"><a class="l" href="#41">41: </a>
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-comment">/**
@@ -180,8 +180,7 @@
</span><span id="61" class="l"><a class="l" href="#61">61: </a>
</span><span id="62" class="l"><a class="l" href="#62">62: </a> }
</span><span id="63" class="l"><a class="l" href="#63">63: </a>}
</span><span id="64" class="l"><a class="l" href="#64">64: </a>
</span><span id="65" class="l"><a class="l" href="#65">65: </a></span></code></pre>
</span><span id="64" class="l"><a class="l" href="#64">64: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -165,16 +165,17 @@
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_noAction" href="#_noAction">noAction</a>(Request <span class="php-var">$request</span>)
</span><span id="46" class="l"><a class="l" href="#46">46: </a> {
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-keyword1">if</span> (<span class="php-var">$request</span>-&gt;query-&gt;has(<span class="php-quote">'view'</span>) === <span class="php-keyword1">false</span>) {
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-var">$fond</span> = <span class="php-quote">&quot;index&quot;</span>;
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-keyword1">if</span> (! <span class="php-var">$view</span> = <span class="php-var">$request</span>-&gt;query-&gt;get(<span class="php-quote">'view'</span>)) {
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-var">$view</span> = <span class="php-quote">&quot;index&quot;</span>;
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-keyword1">if</span> (<span class="php-var">$request</span>-&gt;request-&gt;has(<span class="php-quote">'view'</span>)) {
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-var">$fond</span> = <span class="php-var">$request</span>-&gt;request-&gt;get(<span class="php-quote">'view'</span>);
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-var">$view</span> = <span class="php-var">$request</span>-&gt;request-&gt;get(<span class="php-quote">'view'</span>);
</span><span id="51" class="l"><a class="l" href="#51">51: </a> }
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-var">$request</span>-&gt;query-&gt;set(<span class="php-quote">'view'</span>, <span class="php-var">$fond</span>);
</span><span id="53" class="l"><a class="l" href="#53">53: </a> }
</span><span id="54" class="l"><a class="l" href="#54">54: </a> }
</span><span id="55" class="l"><a class="l" href="#55">55: </a>}
</span><span id="56" class="l"><a class="l" href="#56">56: </a></span></code></pre>
</span><span id="52" class="l"><a class="l" href="#52">52: </a> }
</span><span id="53" class="l"><a class="l" href="#53">53: </a>
</span><span id="54" class="l"><a class="l" href="#54">54: </a> <span class="php-var">$request</span>-&gt;attributes-&gt;set(<span class="php-quote">'_view'</span>, <span class="php-var">$view</span>);
</span><span id="55" class="l"><a class="l" href="#55">55: </a> }
</span><span id="56" class="l"><a class="l" href="#56">56: </a>}
</span><span id="57" class="l"><a class="l" href="#57">57: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -208,7 +208,7 @@
</span></span><span id="91" class="l"><a class="l" href="#91"> 91: </a><span class="php-comment"> */</span>
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a>
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> <span class="php-var">$container</span>-&gt;register(<span class="php-quote">'thelia.listener.view'</span>,<span class="php-quote">'Thelia\Core\EventListener\ViewListener'</span>)
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> -&gt;addArgument(<span class="php-keyword1">new</span> Reference(<span class="php-quote">'parser'</span>))
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> -&gt;addArgument(<span class="php-keyword1">new</span> Reference(<span class="php-quote">'service_container'</span>))
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> ;
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a>
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a>

View File

@@ -158,7 +158,14 @@
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> * Send if no action are already present in Thelia action process ( see Thelia\Routing\Matcher\ActionMatcher)
</span></span><span id="41" class="l"><a class="l" href="#41">41: </a><span class="php-comment"> */</span>
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-keyword1">const</span> <a id="ACTION" href="#ACTION">ACTION</a> = <span class="php-quote">&quot;thelia.action&quot;</span>;
</span><span id="43" class="l"><a class="l" href="#43">43: </a></span>}</code></pre>
</span><span id="43" class="l"><a class="l" href="#43">43: </a>
</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-comment">/**
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> * INCLUDE event
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> *
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * Send before starting thelia inclusion
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> */</span>
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-keyword1">const</span> <a id="INCLUSION" href="#INCLUSION">INCLUSION</a> = <span class="php-quote">&quot;thelia.include&quot;</span>;
</span><span id="50" class="l"><a class="l" href="#50">50: </a></span>}</code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -125,83 +125,121 @@
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment">/* email : info@thelia.net */</span>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment">/* web : http://www.thelia.net */</span>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/* */</span>
</span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment">/* This program is free software; you can redistribute it and/or modify */</span>
</span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment">/* it under the terms of the GNU General Public License as published by */</span>
</span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment">/* the Free Software Foundation; either version 3 of the License */</span>
</span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment">/* */</span>
</span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment">/* This program is distributed in the hope that it will be useful, */</span>
</span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment">/* but WITHOUT ANY WARRANTY; without even the implied warranty of */</span>
</span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment">/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */</span>
</span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment">/* GNU General Public License for more details. */</span>
</span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment">/* */</span>
</span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment">/* You should have received a copy of the GNU General Public License */</span>
</span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment">/* along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;. */</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment">/* */</span>
</span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment">/*************************************************************************************/</span>
</span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-keyword1">namespace</span> Thelia\Core\EventListener;
</span><span id="24" class="l"><a class="l" href="#24">24: </a>
</span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-keyword1">use</span> Symfony\Component\EventDispatcher\EventSubscriberInterface;
</span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\KernelEvents;
</span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
</span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Response;
</span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-keyword1">use</span> Thelia\Core\Template\ParserInterface;
</span><span id="30" class="l"><a class="l" href="#30">30: </a>
</span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> *
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * ViewSubscriber Main class subscribing to view http response.
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> *
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> * @TODO Look if it's possible to block this definition in dependency-injection
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> *
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39">39: </a>
</span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-keyword1">class</span> <a id="ViewListener" href="#ViewListener">ViewListener</a> <span class="php-keyword1">implements</span> EventSubscriberInterface
</span><span id="41" class="l"><a class="l" href="#41">41: </a>{
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$parser" href="#$parser">$parser</a></span>;
</span><span id="43" class="l"><a class="l" href="#43">43: </a>
</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-comment">/**
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> *
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * @param \Thelia\Core\Template\ParserInterface $parser
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> */</span>
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(ParserInterface <span class="php-var">$parser</span>)
</span><span id="49" class="l"><a class="l" href="#49">49: </a> {
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-var">$this</span>-&gt;parser = <span class="php-var">$parser</span>;
</span><span id="51" class="l"><a class="l" href="#51">51: </a> }
</span><span id="52" class="l"><a class="l" href="#52">52: </a>
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-comment">/**
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> *
</span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> * Launch the parser defined on the constructor and get the result.
</span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> *
</span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> * The result is transform id needed into a Response object
</span></span><span id="58" class="l"><a class="l" href="#58">58: </a><span class="php-comment"> *
</span></span><span id="59" class="l"><a class="l" href="#59">59: </a><span class="php-comment"> * @param \Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent $event
</span></span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="php-comment"> */</span>
</span><span id="61" class="l"><a class="l" href="#61">61: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_onKernelView" href="#_onKernelView">onKernelView</a>(GetResponseForControllerResultEvent <span class="php-var">$event</span>)
</span><span id="62" class="l"><a class="l" href="#62">62: </a> {
</span><span id="63" class="l"><a class="l" href="#63">63: </a> <span class="php-var">$content</span> = <span class="php-var">$this</span>-&gt;parser-&gt;getContent();
</span><span id="64" class="l"><a class="l" href="#64">64: </a>
</span><span id="65" class="l"><a class="l" href="#65">65: </a> <span class="php-keyword1">if</span> (<span class="php-var">$content</span> <span class="php-keyword1">instanceof</span> Response) {
</span><span id="66" class="l"><a class="l" href="#66">66: </a> <span class="php-var">$event</span>-&gt;setResponse(<span class="php-var">$content</span>);
</span><span id="67" class="l"><a class="l" href="#67">67: </a> } <span class="php-keyword1">else</span> {
</span><span id="68" class="l"><a class="l" href="#68">68: </a> <span class="php-var">$event</span>-&gt;setResponse(<span class="php-keyword1">new</span> Response(<span class="php-var">$content</span>, <span class="php-var">$this</span>-&gt;parser-&gt;getStatus() ?: <span class="php-num">200</span>));
</span><span id="69" class="l"><a class="l" href="#69">69: </a> }
</span><span id="70" class="l"><a class="l" href="#70">70: </a> }
</span><span id="71" class="l"><a class="l" href="#71">71: </a>
</span><span id="72" class="l"><a class="l" href="#72">72: </a>
</span><span id="73" class="l"><a class="l" href="#73">73: </a> <span class="php-comment">/**
</span></span><span id="74" class="l"><a class="l" href="#74">74: </a><span class="php-comment"> *
</span></span><span id="75" class="l"><a class="l" href="#75">75: </a><span class="php-comment"> * Register the method to execute in this class for a specific event (here the kernel.view event)
</span></span><span id="76" class="l"><a class="l" href="#76">76: </a><span class="php-comment"> *
</span></span><span id="77" class="l"><a class="l" href="#77">77: </a><span class="php-comment"> * @return array The event names to listen to
</span></span><span id="78" class="l"><a class="l" href="#78">78: </a><span class="php-comment"> */</span>
</span><span id="79" class="l"><a class="l" href="#79">79: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_getSubscribedEvents" href="#_getSubscribedEvents">getSubscribedEvents</a>()
</span><span id="80" class="l"><a class="l" href="#80">80: </a> {
</span><span id="81" class="l"><a class="l" href="#81">81: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">array</span>(
</span><span id="82" class="l"><a class="l" href="#82">82: </a> KernelEvents::VIEW =&gt; <span class="php-keyword1">array</span>(<span class="php-quote">'onKernelView'</span>),
</span><span id="83" class="l"><a class="l" href="#83">83: </a> );
</span><span id="84" class="l"><a class="l" href="#84">84: </a> }
</span><span id="85" class="l"><a class="l" href="#85">85: </a>}
</span><span id="86" class="l"><a class="l" href="#86">86: </a></span></code></pre>
</span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment">/* This program is free software; you can redistribute it and/or modify */</span>
</span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment">/* it under the terms of the GNU General Public License as published by */</span>
</span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-comment">/* the Free Software Foundation; either version 3 of the License */</span>
</span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-comment">/* */</span>
</span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment">/* This program is distributed in the hope that it will be useful, */</span>
</span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-comment">/* but WITHOUT ANY WARRANTY; without even the implied warranty of */</span>
</span><span id="16" class="l"><a class="l" href="#16"> 16: </a><span class="php-comment">/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */</span>
</span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment">/* GNU General Public License for more details. */</span>
</span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment">/* */</span>
</span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment">/* You should have received a copy of the GNU General Public License */</span>
</span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment">/* along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;. */</span>
</span><span id="21" class="l"><a class="l" href="#21"> 21: </a><span class="php-comment">/* */</span>
</span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment">/*************************************************************************************/</span>
</span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-keyword1">namespace</span> Thelia\Core\EventListener;
</span><span id="24" class="l"><a class="l" href="#24"> 24: </a>
</span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-keyword1">use</span> Symfony\Component\EventDispatcher\EventSubscriberInterface;
</span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\KernelEvents;
</span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-keyword1">use</span> Symfony\Component\DependencyInjection\ContainerInterface;
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Request;
</span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Response;
</span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-keyword1">use</span> Symfony\Component\Routing\Exception\ResourceNotFoundException;
</span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-keyword1">use</span> Thelia\Core\Template\ParserInterface;
</span><span id="33" class="l"><a class="l" href="#33"> 33: </a>
</span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment">/**
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> *
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * ViewSubscriber Main class subscribing to view http response.
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> *
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> * @TODO Look if it's possible to block this definition in dependency-injection
</span></span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-comment"> *
</span></span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="41" class="l"><a class="l" href="#41"> 41: </a><span class="php-comment"> */</span>
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a>
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-keyword1">class</span> <a id="ViewListener" href="#ViewListener">ViewListener</a> <span class="php-keyword1">implements</span> EventSubscriberInterface
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a>{
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-comment">/**
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> *
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> * @var Symfony\Component\DependencyInjection\ContainerInterface
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> */</span>
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$container" href="#$container">$container</a></span>;
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a>
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-comment">/**
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> *
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> * @param \Thelia\Core\Template\ParserInterface $parser
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(ContainerInterface <span class="php-var">$container</span>)
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> {
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-var">$this</span>-&gt;container = <span class="php-var">$container</span>;
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a> }
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a>
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-comment">/**
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> *
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> * Launch the parser defined on the constructor and get the result.
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> *
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> * The result is transform id needed into a Response object
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> *
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * @param \Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent $event
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> */</span>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_onKernelView" href="#_onKernelView">onKernelView</a>(GetResponseForControllerResultEvent <span class="php-var">$event</span>)
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> {
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-var">$parser</span> = <span class="php-var">$this</span>-&gt;container-&gt;get(<span class="php-quote">'parser'</span>);
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-keyword1">try</span> {
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-var">$content</span> = <span class="php-var">$parser</span>-&gt;getContent();
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a>
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-keyword1">if</span> (<span class="php-var">$content</span> <span class="php-keyword1">instanceof</span> Response) {
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-var">$event</span>-&gt;setResponse(<span class="php-var">$content</span>);
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a> } <span class="php-keyword1">else</span> {
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-var">$event</span>-&gt;setResponse(<span class="php-keyword1">new</span> Response(<span class="php-var">$content</span>, <span class="php-var">$parser</span>-&gt;getStatus() ?: <span class="php-num">200</span>));
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> }
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> } <span class="php-keyword1">catch</span>(ResourceNotFoundException <span class="php-var">$e</span>) {
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> <span class="php-var">$event</span>-&gt;setResponse(<span class="php-keyword1">new</span> Response(<span class="php-var">$e</span>-&gt;getMessage(), <span class="php-num">404</span>));
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> }
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> }
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a>
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_beforeKernelView" href="#_beforeKernelView">beforeKernelView</a>(GetResponseForControllerResultEvent <span class="php-var">$event</span>)
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> {
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-var">$request</span> = <span class="php-var">$this</span>-&gt;container-&gt;get(<span class="php-quote">'request'</span>);
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$view</span> = <span class="php-var">$request</span>-&gt;attributes-&gt;get(<span class="php-quote">'_view'</span>)) {
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> <span class="php-var">$request</span>-&gt;attributes-&gt;set(<span class="php-quote">'_view'</span>, <span class="php-var">$this</span>-&gt;findView(<span class="php-var">$request</span>));
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> }
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a>
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> }
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a>
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_findView" href="#_findView">findView</a>(Request <span class="php-var">$request</span>)
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> {
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> <span class="php-keyword1">if</span> (! <span class="php-var">$view</span> = <span class="php-var">$request</span>-&gt;query-&gt;get(<span class="php-quote">'view'</span>)) {
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-var">$view</span> = <span class="php-quote">&quot;index&quot;</span>;
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-keyword1">if</span> (<span class="php-var">$request</span>-&gt;request-&gt;has(<span class="php-quote">'view'</span>)) {
</span><span id="100" class="l"><a class="l" href="#100">100: </a> <span class="php-var">$view</span> = <span class="php-var">$request</span>-&gt;request-&gt;get(<span class="php-quote">'view'</span>);
</span><span id="101" class="l"><a class="l" href="#101">101: </a> }
</span><span id="102" class="l"><a class="l" href="#102">102: </a> }
</span><span id="103" class="l"><a class="l" href="#103">103: </a>
</span><span id="104" class="l"><a class="l" href="#104">104: </a> <span class="php-keyword1">return</span> <span class="php-var">$view</span>;
</span><span id="105" class="l"><a class="l" href="#105">105: </a> }
</span><span id="106" class="l"><a class="l" href="#106">106: </a>
</span><span id="107" class="l"><a class="l" href="#107">107: </a>
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-comment">/**
</span></span><span id="109" class="l"><a class="l" href="#109">109: </a><span class="php-comment"> *
</span></span><span id="110" class="l"><a class="l" href="#110">110: </a><span class="php-comment"> * Register the method to execute in this class for a specific event (here the kernel.view event)
</span></span><span id="111" class="l"><a class="l" href="#111">111: </a><span class="php-comment"> *
</span></span><span id="112" class="l"><a class="l" href="#112">112: </a><span class="php-comment"> * @return array The event names to listen to
</span></span><span id="113" class="l"><a class="l" href="#113">113: </a><span class="php-comment"> */</span>
</span><span id="114" class="l"><a class="l" href="#114">114: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_getSubscribedEvents" href="#_getSubscribedEvents">getSubscribedEvents</a>()
</span><span id="115" class="l"><a class="l" href="#115">115: </a> {
</span><span id="116" class="l"><a class="l" href="#116">116: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">array</span>(
</span><span id="117" class="l"><a class="l" href="#117">117: </a> KernelEvents::VIEW =&gt;<span class="php-keyword1">array</span>(
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-keyword1">array</span>(<span class="php-quote">'onKernelView'</span>, <span class="php-num">0</span>),
</span><span id="119" class="l"><a class="l" href="#119">119: </a> <span class="php-keyword1">array</span>(<span class="php-quote">'beforeKernelView'</span>, <span class="php-num">5</span>)
</span><span id="120" class="l"><a class="l" href="#120">120: </a> )
</span><span id="121" class="l"><a class="l" href="#121">121: </a> );
</span><span id="122" class="l"><a class="l" href="#122">122: </a> }
</span><span id="123" class="l"><a class="l" href="#123">123: </a>}
</span><span id="124" class="l"><a class="l" href="#124">124: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -146,98 +146,139 @@
</span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Response;
</span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-keyword1">use</span> Thelia\Core\Template\ParserInterface;
</span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-keyword1">use</span> Symfony\Component\DependencyInjection\ContainerInterface;
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a>
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-comment"> *
</span></span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment"> * Master class of Thelia's parser. The loop mechanism depends of this parser
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Request;
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-keyword1">use</span> Symfony\Component\Routing\Exception\ResourceNotFoundException;
</span><span id="30" class="l"><a class="l" href="#30"> 30: </a>
</span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> *
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> * From this class all the parser is lunch
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> * Master class of Thelia's parser. The loop mechanism depends of this parser
</span></span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment"> *
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> *
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> */</span>
</span><span id="38" class="l"><a class="l" href="#38"> 38: </a>
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a>
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-keyword1">class</span> <a id="Parser" href="#Parser">Parser</a> <span class="php-keyword1">implements</span> ParserInterface
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a>{
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a> <span class="php-keyword1">const</span> <a id="PREFIXE" href="#PREFIXE">PREFIXE</a> = <span class="php-quote">'prx'</span>;
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a>
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a> <span class="php-keyword1">const</span> <a id="SHOW_TIME" href="#SHOW_TIME">SHOW_TIME</a> = <span class="php-keyword1">true</span>;
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-keyword1">const</span> <a id="ALLOW_DEBUG" href="#ALLOW_DEBUG">ALLOW_DEBUG</a> = <span class="php-keyword1">true</span>;
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a> <span class="php-keyword1">const</span> <a id="USE_CACHE" href="#USE_CACHE">USE_CACHE</a> = <span class="php-keyword1">true</span>;
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a>
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-comment">/**
</span></span><span id="49" class="l"><a class="l" href="#49"> 49: </a><span class="php-comment"> *
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> * @var Symfony\Component\DependencyInjection\ContainerInterface
</span></span><span id="51" class="l"><a class="l" href="#51"> 51: </a><span class="php-comment"> */</span>
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$container" href="#$container">$container</a></span>;
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a>
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$content" href="#$content">$content</a></span>;
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$status" href="#$status">$status</a></span> = <span class="php-num">200</span>;
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> * From this class all the parser is lunch
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> *
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> *
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-comment"> */</span>
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a>
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a>
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-keyword1">class</span> <a id="Parser" href="#Parser">Parser</a> <span class="php-keyword1">implements</span> ParserInterface
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a>{
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a> <span class="php-keyword1">const</span> <a id="PREFIXE" href="#PREFIXE">PREFIXE</a> = <span class="php-quote">'prx'</span>;
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a>
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a> <span class="php-keyword1">const</span> <a id="SHOW_TIME" href="#SHOW_TIME">SHOW_TIME</a> = <span class="php-keyword1">true</span>;
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> <span class="php-keyword1">const</span> <a id="ALLOW_DEBUG" href="#ALLOW_DEBUG">ALLOW_DEBUG</a> = <span class="php-keyword1">true</span>;
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-keyword1">const</span> <a id="USE_CACHE" href="#USE_CACHE">USE_CACHE</a> = <span class="php-keyword1">true</span>;
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a>
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a>
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-comment">/**
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> *
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> * @var Symfony\Component\DependencyInjection\ContainerInterface
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$container" href="#$container">$container</a></span>;
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a>
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-comment">/**
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> *
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> * @param type $container
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> *
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> * public function __construct(ContainerBuilder $container)
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> */</span>
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(ContainerInterface <span class="php-var">$container</span>)
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> {
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-var">$this</span>-&gt;container = <span class="php-var">$container</span>;
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> }
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-comment">/**
</span></span><span id="69" class="l"><a class="l" href="#69"> 69: </a><span class="php-comment"> *
</span></span><span id="70" class="l"><a class="l" href="#70"> 70: </a><span class="php-comment"> * This method must return a Symfony\Component\HttpFoudation\Response instance or the content of the response
</span></span><span id="71" class="l"><a class="l" href="#71"> 71: </a><span class="php-comment"> *
</span></span><span id="72" class="l"><a class="l" href="#72"> 72: </a><span class="php-comment"> */</span>
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getContent" href="#_getContent">getContent</a>()
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> {
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-var">$this</span>-&gt;loadParser();
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-keyword1">echo</span> \Thelia\Model\ConfigQuery::read(<span class="php-quote">&quot;alfred&quot;</span>, <span class="php-quote">&quot;dupont&quot;</span>);
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> \Thelia\<span class="php-keyword2">Log</span>\Tlog::getInstance()-&gt;debug(<span class="php-quote">&quot;tutu&quot;</span>);
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a>
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;content;
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> }
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-comment">/**
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> *
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> * set $content with the body of the response or the Response object directly
</span></span><span id="86" class="l"><a class="l" href="#86"> 86: </a><span class="php-comment"> *
</span></span><span id="87" class="l"><a class="l" href="#87"> 87: </a><span class="php-comment"> * @param string|Symfony\Component\HttpFoundation\Response $content
</span></span><span id="88" class="l"><a class="l" href="#88"> 88: </a><span class="php-comment"> */</span>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_setContent" href="#_setContent">setContent</a>(<span class="php-var">$content</span>)
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> {
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-var">$this</span>-&gt;content = <span class="php-var">$content</span>;
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> }
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a>
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-comment">/**
</span></span><span id="95" class="l"><a class="l" href="#95"> 95: </a><span class="php-comment"> *
</span></span><span id="96" class="l"><a class="l" href="#96"> 96: </a><span class="php-comment"> * @return type the status of the response
</span></span><span id="97" class="l"><a class="l" href="#97"> 97: </a><span class="php-comment"> */</span>
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getStatus" href="#_getStatus">getStatus</a>()
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> {
</span><span id="100" class="l"><a class="l" href="#100">100: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;status;
</span><span id="101" class="l"><a class="l" href="#101">101: </a> }
</span><span id="102" class="l"><a class="l" href="#102">102: </a>
</span><span id="103" class="l"><a class="l" href="#103">103: </a> <span class="php-comment">/**
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> *
</span></span><span id="105" class="l"><a class="l" href="#105">105: </a><span class="php-comment"> * status HTTP of the response
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$content" href="#$content">$content</a></span>;
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$status" href="#$status">$status</a></span> = <span class="php-num">200</span>;
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a>
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$template" href="#$template">$template</a></span> = <span class="php-quote">&quot;default&quot;</span>;
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a>
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a> <span class="php-comment">/**
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> *
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> * @param type $container
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> *
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * public function __construct(ContainerBuilder $container)
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> */</span>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(ContainerInterface <span class="php-var">$container</span>)
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> {
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-var">$this</span>-&gt;container = <span class="php-var">$container</span>;
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> }
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a>
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-comment">/**
</span></span><span id="74" class="l"><a class="l" href="#74"> 74: </a><span class="php-comment"> *
</span></span><span id="75" class="l"><a class="l" href="#75"> 75: </a><span class="php-comment"> * @return Symfony\Component\HttpFoundation\Request
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> */</span>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getRequest" href="#_getRequest">getRequest</a>()
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> {
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;container-&gt;get(<span class="php-quote">'request'</span>);
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> }
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a>
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-comment">/**
</span></span><span id="83" class="l"><a class="l" href="#83"> 83: </a><span class="php-comment"> *
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> * @return Symfony\Component\EventDispatcher\EventDispatcher
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> */</span>
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getDispatcher" href="#_getDispatcher">getDispatcher</a>()
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> {
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;container-&gt;get(<span class="php-quote">'dispatcher'</span>);
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> }
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a>
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-comment">/**
</span></span><span id="92" class="l"><a class="l" href="#92"> 92: </a><span class="php-comment"> *
</span></span><span id="93" class="l"><a class="l" href="#93"> 93: </a><span class="php-comment"> * This method must return a Symfony\Component\HttpFoudation\Response instance or the content of the response
</span></span><span id="94" class="l"><a class="l" href="#94"> 94: </a><span class="php-comment"> *
</span></span><span id="95" class="l"><a class="l" href="#95"> 95: </a><span class="php-comment"> */</span>
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getContent" href="#_getContent">getContent</a>()
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> {
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-var">$this</span>-&gt;loadParser();
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a>
</span><span id="100" class="l"><a class="l" href="#100">100: </a> <span class="php-keyword1">echo</span> \Thelia\Model\ConfigQuery::read(<span class="php-quote">&quot;alfred&quot;</span>, <span class="php-quote">&quot;dupont&quot;</span>);
</span><span id="101" class="l"><a class="l" href="#101">101: </a>
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;content;
</span><span id="103" class="l"><a class="l" href="#103">103: </a> }
</span><span id="104" class="l"><a class="l" href="#104">104: </a>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-comment">/**
</span></span><span id="106" class="l"><a class="l" href="#106">106: </a><span class="php-comment"> *
</span></span><span id="107" class="l"><a class="l" href="#107">107: </a><span class="php-comment"> * @param int $status
</span></span><span id="108" class="l"><a class="l" href="#108">108: </a><span class="php-comment"> */</span>
</span><span id="109" class="l"><a class="l" href="#109">109: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_setStatus" href="#_setStatus">setStatus</a>(<span class="php-var">$status</span>)
</span><span id="110" class="l"><a class="l" href="#110">110: </a> {
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-var">$this</span>-&gt;status = <span class="php-var">$status</span>;
</span><span id="112" class="l"><a class="l" href="#112">112: </a> }
</span><span id="113" class="l"><a class="l" href="#113">113: </a>
</span><span id="114" class="l"><a class="l" href="#114">114: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_loadParser" href="#_loadParser">loadParser</a>()
</span><span id="115" class="l"><a class="l" href="#115">115: </a> {
</span><span id="116" class="l"><a class="l" href="#116">116: </a> }
</span><span id="117" class="l"><a class="l" href="#117">117: </a>
</span><span id="118" class="l"><a class="l" href="#118">118: </a>}
</span><span id="119" class="l"><a class="l" href="#119">119: </a></span></code></pre>
</span></span><span id="107" class="l"><a class="l" href="#107">107: </a><span class="php-comment"> * set $content with the body of the response or the Response object directly
</span></span><span id="108" class="l"><a class="l" href="#108">108: </a><span class="php-comment"> *
</span></span><span id="109" class="l"><a class="l" href="#109">109: </a><span class="php-comment"> * @param string|Symfony\Component\HttpFoundation\Response $content
</span></span><span id="110" class="l"><a class="l" href="#110">110: </a><span class="php-comment"> */</span>
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_setContent" href="#_setContent">setContent</a>(<span class="php-var">$content</span>)
</span><span id="112" class="l"><a class="l" href="#112">112: </a> {
</span><span id="113" class="l"><a class="l" href="#113">113: </a> <span class="php-var">$this</span>-&gt;content = <span class="php-var">$content</span>;
</span><span id="114" class="l"><a class="l" href="#114">114: </a> }
</span><span id="115" class="l"><a class="l" href="#115">115: </a>
</span><span id="116" class="l"><a class="l" href="#116">116: </a> <span class="php-comment">/**
</span></span><span id="117" class="l"><a class="l" href="#117">117: </a><span class="php-comment"> *
</span></span><span id="118" class="l"><a class="l" href="#118">118: </a><span class="php-comment"> * @return type the status of the response
</span></span><span id="119" class="l"><a class="l" href="#119">119: </a><span class="php-comment"> */</span>
</span><span id="120" class="l"><a class="l" href="#120">120: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getStatus" href="#_getStatus">getStatus</a>()
</span><span id="121" class="l"><a class="l" href="#121">121: </a> {
</span><span id="122" class="l"><a class="l" href="#122">122: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;status;
</span><span id="123" class="l"><a class="l" href="#123">123: </a> }
</span><span id="124" class="l"><a class="l" href="#124">124: </a>
</span><span id="125" class="l"><a class="l" href="#125">125: </a> <span class="php-comment">/**
</span></span><span id="126" class="l"><a class="l" href="#126">126: </a><span class="php-comment"> *
</span></span><span id="127" class="l"><a class="l" href="#127">127: </a><span class="php-comment"> * status HTTP of the response
</span></span><span id="128" class="l"><a class="l" href="#128">128: </a><span class="php-comment"> *
</span></span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment"> * @param int $status
</span></span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment"> */</span>
</span><span id="131" class="l"><a class="l" href="#131">131: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_setStatus" href="#_setStatus">setStatus</a>(<span class="php-var">$status</span>)
</span><span id="132" class="l"><a class="l" href="#132">132: </a> {
</span><span id="133" class="l"><a class="l" href="#133">133: </a> <span class="php-var">$this</span>-&gt;status = <span class="php-var">$status</span>;
</span><span id="134" class="l"><a class="l" href="#134">134: </a> }
</span><span id="135" class="l"><a class="l" href="#135">135: </a>
</span><span id="136" class="l"><a class="l" href="#136">136: </a> <span class="php-comment">/**
</span></span><span id="137" class="l"><a class="l" href="#137">137: </a><span class="php-comment"> * Main parser function, load the parser
</span></span><span id="138" class="l"><a class="l" href="#138">138: </a><span class="php-comment"> */</span>
</span><span id="139" class="l"><a class="l" href="#139">139: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_loadParser" href="#_loadParser">loadParser</a>()
</span><span id="140" class="l"><a class="l" href="#140">140: </a> {
</span><span id="141" class="l"><a class="l" href="#141">141: </a> <span class="php-var">$content</span> = <span class="php-var">$this</span>-&gt;openFile(<span class="php-var">$this</span>-&gt;getRequest());
</span><span id="142" class="l"><a class="l" href="#142">142: </a> }
</span><span id="143" class="l"><a class="l" href="#143">143: </a>
</span><span id="144" class="l"><a class="l" href="#144">144: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_openFile" href="#_openFile">openFile</a>(Request <span class="php-var">$request</span>)
</span><span id="145" class="l"><a class="l" href="#145">145: </a> {
</span><span id="146" class="l"><a class="l" href="#146">146: </a> <span class="php-var">$file</span> = <span class="php-var">$request</span>-&gt;attributes-&gt;get(<span class="php-quote">'_view'</span>);
</span><span id="147" class="l"><a class="l" href="#147">147: </a> <span class="php-var">$fileName</span> = THELIA_TEMPLATE_DIR . <span class="php-keyword2">rtrim</span>(<span class="php-var">$this</span>-&gt;template, <span class="php-quote">&quot;/&quot;</span>) . <span class="php-quote">&quot;/&quot;</span> . <span class="php-var">$file</span> . <span class="php-quote">&quot;.html&quot;</span>;
</span><span id="148" class="l"><a class="l" href="#148">148: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">file_exists</span>(<span class="php-var">$fileName</span>)) {
</span><span id="149" class="l"><a class="l" href="#149">149: </a> <span class="php-var">$content</span> = <span class="php-keyword2">file_get_contents</span>(<span class="php-var">$fileName</span>);
</span><span id="150" class="l"><a class="l" href="#150">150: </a> } <span class="php-keyword1">else</span> {
</span><span id="151" class="l"><a class="l" href="#151">151: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> ResourceNotFoundException(<span class="php-keyword2">sprintf</span>(<span class="php-quote">&quot;%s file not found in %s template&quot;</span>, <span class="php-var">$file</span>, <span class="php-var">$this</span>-&gt;template));
</span><span id="152" class="l"><a class="l" href="#152">152: </a> }
</span><span id="153" class="l"><a class="l" href="#153">153: </a>
</span><span id="154" class="l"><a class="l" href="#154">154: </a> <span class="php-keyword1">return</span> <span class="php-var">$content</span>;
</span><span id="155" class="l"><a class="l" href="#155">155: </a> }
</span><span id="156" class="l"><a class="l" href="#156">156: </a>
</span><span id="157" class="l"><a class="l" href="#157">157: </a>
</span><span id="158" class="l"><a class="l" href="#158">158: </a>
</span><span id="159" class="l"><a class="l" href="#159">159: </a>}
</span><span id="160" class="l"><a class="l" href="#160">160: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -152,143 +152,171 @@
</span><span id="34" class="l"><a class="l" href="#34"> 34: </a>
</span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\Kernel;
</span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-keyword1">use</span> Symfony\Component\Config\Loader\LoaderInterface;
</span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-keyword1">use</span> Thelia\Core\Bundle;
</span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-keyword1">use</span> Thelia\<span class="php-keyword2">Log</span>\Tlog;
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-keyword1">use</span> Propel;
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-keyword1">use</span> PropelConfiguration;
</span><span id="37" class="l"><a class="l" href="#37"> 37: </a>
</span><span id="38" class="l"><a class="l" href="#38"> 38: </a>
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-keyword1">use</span> Thelia\Core\Bundle;
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-keyword1">use</span> Thelia\<span class="php-keyword2">Log</span>\Tlog;
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a>
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-keyword1">class</span> <a id="Thelia" href="#Thelia">Thelia</a> <span class="php-keyword1">extends</span> Kernel
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a>{
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-keyword1">use</span> Propel;
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-keyword1">use</span> PropelConfiguration;
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a>
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_init" href="#_init">init</a>()
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a> {
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> parent::init();
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a>
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> <span class="php-var">$this</span>-&gt;initPropel();
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a> }
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a><span class="php-keyword1">class</span> <a id="Thelia" href="#Thelia">Thelia</a> <span class="php-keyword1">extends</span> Kernel
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a>{
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a>
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_init" href="#_init">init</a>()
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> {
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a> parent::init();
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a>
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_initPropel" href="#_initPropel">initPropel</a>()
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> {
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">file_exists</span>(THELIA_ROOT . <span class="php-quote">'/local/config/config_db.php'</span>) === <span class="php-keyword1">false</span>) {
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">return</span> ;
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> }
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> Propel::init(THELIA_CONF_DIR . <span class="php-quote">&quot;/config_thelia.php&quot;</span>);
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a>
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;isDebug()) {
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> Propel::setLogger(Tlog::getInstance());
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a> <span class="php-var">$config</span> = Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT);
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.method.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.time.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.mem.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a>
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-var">$con</span> = Propel::getConnection(<span class="php-quote">&quot;thelia&quot;</span>);
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> <span class="php-var">$con</span>-&gt;useDebug(<span class="php-keyword1">true</span>);
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> }
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> }
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a>
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-comment">/**
</span></span><span id="72" class="l"><a class="l" href="#72"> 72: </a><span class="php-comment"> *
</span></span><span id="73" class="l"><a class="l" href="#73"> 73: </a><span class="php-comment"> * Load some configuration
</span></span><span id="74" class="l"><a class="l" href="#74"> 74: </a><span class="php-comment"> * Initialize all plugins
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a> <span class="php-var">$this</span>-&gt;initPropel();
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> }
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a>
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_initPropel" href="#_initPropel">initPropel</a>()
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> {
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">file_exists</span>(THELIA_ROOT . <span class="php-quote">'/local/config/config_db.php'</span>) === <span class="php-keyword1">false</span>) {
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a> <span class="php-keyword1">return</span> ;
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> }
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> Propel::init(THELIA_CONF_DIR . <span class="php-quote">&quot;/config_thelia.php&quot;</span>);
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a>
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;isDebug()) {
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> Propel::setLogger(Tlog::getInstance());
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> <span class="php-var">$config</span> = Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT);
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.method.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.time.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> <span class="php-var">$config</span>-&gt;setParameter(<span class="php-quote">'debugpdo.logging.details.mem.enabled'</span>, <span class="php-keyword1">true</span>);
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a>
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-var">$con</span> = Propel::getConnection(<span class="php-quote">&quot;thelia&quot;</span>);
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-var">$con</span>-&gt;useDebug(<span class="php-keyword1">true</span>);
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> }
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> }
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a>
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-comment">/**
</span></span><span id="75" class="l"><a class="l" href="#75"> 75: </a><span class="php-comment"> *
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> */</span>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_loadConfiguration" href="#_loadConfiguration">loadConfiguration</a>()
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> {
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a>
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> }
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a>
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-comment">/**
</span></span><span id="83" class="l"><a class="l" href="#83"> 83: </a><span class="php-comment"> * Gets the cache directory.
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> *
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> * @return string The cache directory
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> * Load some configuration
</span></span><span id="77" class="l"><a class="l" href="#77"> 77: </a><span class="php-comment"> * Initialize all plugins
</span></span><span id="78" class="l"><a class="l" href="#78"> 78: </a><span class="php-comment"> *
</span></span><span id="79" class="l"><a class="l" href="#79"> 79: </a><span class="php-comment"> */</span>
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_loadConfiguration" href="#_loadConfiguration">loadConfiguration</a>()
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> {
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> }
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a>
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-comment">/**
</span></span><span id="86" class="l"><a class="l" href="#86"> 86: </a><span class="php-comment"> *
</span></span><span id="87" class="l"><a class="l" href="#87"> 87: </a><span class="php-comment"> * @api
</span></span><span id="88" class="l"><a class="l" href="#88"> 88: </a><span class="php-comment"> */</span>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getCacheDir" href="#_getCacheDir">getCacheDir</a>()
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> {
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">defined</span>(<span class="php-quote">'THELIA_ROOT'</span>)) {
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-keyword1">return</span> THELIA_ROOT.<span class="php-quote">'cache/'</span>.<span class="php-var">$this</span>-&gt;environment;
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> } <span class="php-keyword1">else</span> {
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-keyword1">return</span> parent::getCacheDir();
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> }
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a>
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> }
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a>
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-comment">/**
</span></span><span id="100" class="l"><a class="l" href="#100">100: </a><span class="php-comment"> * Gets the log directory.
</span></span><span id="101" class="l"><a class="l" href="#101">101: </a><span class="php-comment"> *
</span></span><span id="102" class="l"><a class="l" href="#102">102: </a><span class="php-comment"> * @return string The log directory
</span></span><span id="103" class="l"><a class="l" href="#103">103: </a><span class="php-comment"> *
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> * @api
</span></span><span id="105" class="l"><a class="l" href="#105">105: </a><span class="php-comment"> */</span>
</span><span id="106" class="l"><a class="l" href="#106">106: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getLogDir" href="#_getLogDir">getLogDir</a>()
</span><span id="107" class="l"><a class="l" href="#107">107: </a> {
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">defined</span>(<span class="php-quote">'THELIA_ROOT'</span>)) {
</span><span id="109" class="l"><a class="l" href="#109">109: </a> <span class="php-keyword1">return</span> THELIA_ROOT.<span class="php-quote">'log/'</span>;
</span><span id="110" class="l"><a class="l" href="#110">110: </a> } <span class="php-keyword1">else</span> {
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">return</span> parent::getLogDir();
</span><span id="112" class="l"><a class="l" href="#112">112: </a> }
</span><span id="113" class="l"><a class="l" href="#113">113: </a> }
</span><span id="114" class="l"><a class="l" href="#114">114: </a>
</span><span id="115" class="l"><a class="l" href="#115">115: </a> <span class="php-comment">/**
</span></span><span id="116" class="l"><a class="l" href="#116">116: </a><span class="php-comment"> * Builds the service container.
</span></span><span id="117" class="l"><a class="l" href="#117">117: </a><span class="php-comment"> *
</span></span><span id="118" class="l"><a class="l" href="#118">118: </a><span class="php-comment"> * @return ContainerBuilder The compiled service container
</span></span><span id="119" class="l"><a class="l" href="#119">119: </a><span class="php-comment"> */</span>
</span><span id="120" class="l"><a class="l" href="#120">120: </a><span class="php-comment">// protected function buildContainer()</span>
</span><span id="121" class="l"><a class="l" href="#121">121: </a><span class="php-comment">// {</span>
</span><span id="122" class="l"><a class="l" href="#122">122: </a><span class="php-comment">// $container = $this-&gt;getContainerBuilder();</span>
</span><span id="123" class="l"><a class="l" href="#123">123: </a><span class="php-comment">// $container-&gt;set('kernel', $this);</span>
</span><span id="124" class="l"><a class="l" href="#124">124: </a><span class="php-comment">//</span>
</span><span id="125" class="l"><a class="l" href="#125">125: </a><span class="php-comment">// foreach ($this-&gt;bundles as $bundle) {</span>
</span><span id="126" class="l"><a class="l" href="#126">126: </a><span class="php-comment">// $bundle-&gt;build($container);</span>
</span><span id="127" class="l"><a class="l" href="#127">127: </a><span class="php-comment">// }</span>
</span><span id="128" class="l"><a class="l" href="#128">128: </a><span class="php-comment">//</span>
</span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment">// return $container;</span>
</span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment">// }</span>
</span><span id="131" class="l"><a class="l" href="#131">131: </a>
</span><span id="132" class="l"><a class="l" href="#132">132: </a> <span class="php-comment">/**
</span></span><span id="133" class="l"><a class="l" href="#133">133: </a><span class="php-comment"> * return available bundle
</span></span><span id="134" class="l"><a class="l" href="#134">134: </a><span class="php-comment"> *
</span></span><span id="135" class="l"><a class="l" href="#135">135: </a><span class="php-comment"> * Part of Symfony\Component\HttpKernel\KernelInterface
</span></span><span id="136" class="l"><a class="l" href="#136">136: </a><span class="php-comment"> *
</span></span><span id="137" class="l"><a class="l" href="#137">137: </a><span class="php-comment"> * @return array An array of bundle instances.
</span></span><span id="138" class="l"><a class="l" href="#138">138: </a><span class="php-comment"> *
</span></span><span id="139" class="l"><a class="l" href="#139">139: </a><span class="php-comment"> */</span>
</span><span id="140" class="l"><a class="l" href="#140">140: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_registerBundles" href="#_registerBundles">registerBundles</a>()
</span><span id="141" class="l"><a class="l" href="#141">141: </a> {
</span><span id="142" class="l"><a class="l" href="#142">142: </a> <span class="php-var">$bundles</span> = <span class="php-keyword1">array</span>(
</span><span id="143" class="l"><a class="l" href="#143">143: </a> <span class="php-comment">/* TheliaBundle contain all the dependency injection description */</span>
</span><span id="144" class="l"><a class="l" href="#144">144: </a> <span class="php-keyword1">new</span> Bundle\TheliaBundle()
</span><span id="145" class="l"><a class="l" href="#145">145: </a> );
</span><span id="146" class="l"><a class="l" href="#146">146: </a>
</span><span id="147" class="l"><a class="l" href="#147">147: </a> <span class="php-comment">/**
</span></span><span id="148" class="l"><a class="l" href="#148">148: </a><span class="php-comment"> * OTHER CORE BUNDLE CAN BE DECLARE HERE AND INITIALIZE WITH SPECIFIC CONFIGURATION
</span></span><span id="149" class="l"><a class="l" href="#149">149: </a><span class="php-comment"> *
</span></span><span id="150" class="l"><a class="l" href="#150">150: </a><span class="php-comment"> * HOW TO DECLARE OTHER BUNDLE ? ETC
</span></span><span id="151" class="l"><a class="l" href="#151">151: </a><span class="php-comment"> */</span>
</span><span id="152" class="l"><a class="l" href="#152">152: </a>
</span><span id="153" class="l"><a class="l" href="#153">153: </a> <span class="php-keyword1">return</span> <span class="php-var">$bundles</span>;
</span><span id="154" class="l"><a class="l" href="#154">154: </a>
</span><span id="155" class="l"><a class="l" href="#155">155: </a> }
</span><span id="156" class="l"><a class="l" href="#156">156: </a>
</span><span id="157" class="l"><a class="l" href="#157">157: </a> <span class="php-comment">/**
</span></span><span id="158" class="l"><a class="l" href="#158">158: </a><span class="php-comment"> * Loads the container configuration
</span></span><span id="159" class="l"><a class="l" href="#159">159: </a><span class="php-comment"> *
</span></span><span id="160" class="l"><a class="l" href="#160">160: </a><span class="php-comment"> * part of Symfony\Component\HttpKernel\KernelInterface
</span></span><span id="161" class="l"><a class="l" href="#161">161: </a><span class="php-comment"> *
</span></span><span id="162" class="l"><a class="l" href="#162">162: </a><span class="php-comment"> * @param LoaderInterface $loader A LoaderInterface instance
</span></span><span id="163" class="l"><a class="l" href="#163">163: </a><span class="php-comment"> *
</span></span><span id="164" class="l"><a class="l" href="#164">164: </a><span class="php-comment"> * @api
</span></span><span id="165" class="l"><a class="l" href="#165">165: </a><span class="php-comment"> */</span>
</span><span id="166" class="l"><a class="l" href="#166">166: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_registerContainerConfiguration" href="#_registerContainerConfiguration">registerContainerConfiguration</a>(LoaderInterface <span class="php-var">$loader</span>)
</span><span id="167" class="l"><a class="l" href="#167">167: </a> {
</span><span id="168" class="l"><a class="l" href="#168">168: </a> <span class="php-comment">//Nothing is load here but it's possible to load container configuration here.</span>
</span><span id="169" class="l"><a class="l" href="#169">169: </a> <span class="php-comment">//exemple in sf2 : $loader-&gt;load(__DIR__.'/config/config_'.$this-&gt;getEnvironment().'.yml');</span>
</span><span id="170" class="l"><a class="l" href="#170">170: </a> }
</span><span id="171" class="l"><a class="l" href="#171">171: </a>
</span><span id="172" class="l"><a class="l" href="#172">172: </a>}
</span><span id="173" class="l"><a class="l" href="#173">173: </a></span></code></pre>
</span></span><span id="87" class="l"><a class="l" href="#87"> 87: </a><span class="php-comment"> * initialize session in Request object
</span></span><span id="88" class="l"><a class="l" href="#88"> 88: </a><span class="php-comment"> *
</span></span><span id="89" class="l"><a class="l" href="#89"> 89: </a><span class="php-comment"> * All param must be change in Config table
</span></span><span id="90" class="l"><a class="l" href="#90"> 90: </a><span class="php-comment"> *
</span></span><span id="91" class="l"><a class="l" href="#91"> 91: </a><span class="php-comment"> * @param \Symfony\Component\HttpFoundation\Request $request
</span></span><span id="92" class="l"><a class="l" href="#92"> 92: </a><span class="php-comment"> */</span>
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a>
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a>
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> <span class="php-comment">/**
</span></span><span id="96" class="l"><a class="l" href="#96"> 96: </a><span class="php-comment"> *
</span></span><span id="97" class="l"><a class="l" href="#97"> 97: </a><span class="php-comment"> * boot parent kernel and after current kernel
</span></span><span id="98" class="l"><a class="l" href="#98"> 98: </a><span class="php-comment"> *
</span></span><span id="99" class="l"><a class="l" href="#99"> 99: </a><span class="php-comment"> */</span>
</span><span id="100" class="l"><a class="l" href="#100">100: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_boot" href="#_boot">boot</a>()
</span><span id="101" class="l"><a class="l" href="#101">101: </a> {
</span><span id="102" class="l"><a class="l" href="#102">102: </a>
</span><span id="103" class="l"><a class="l" href="#103">103: </a>
</span><span id="104" class="l"><a class="l" href="#104">104: </a>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> parent::boot();
</span><span id="106" class="l"><a class="l" href="#106">106: </a>
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-var">$this</span>-&gt;loadConfiguration();
</span><span id="108" class="l"><a class="l" href="#108">108: </a> }
</span><span id="109" class="l"><a class="l" href="#109">109: </a>
</span><span id="110" class="l"><a class="l" href="#110">110: </a> <span class="php-comment">/**
</span></span><span id="111" class="l"><a class="l" href="#111">111: </a><span class="php-comment"> * Gets the cache directory.
</span></span><span id="112" class="l"><a class="l" href="#112">112: </a><span class="php-comment"> *
</span></span><span id="113" class="l"><a class="l" href="#113">113: </a><span class="php-comment"> * @return string The cache directory
</span></span><span id="114" class="l"><a class="l" href="#114">114: </a><span class="php-comment"> *
</span></span><span id="115" class="l"><a class="l" href="#115">115: </a><span class="php-comment"> * @api
</span></span><span id="116" class="l"><a class="l" href="#116">116: </a><span class="php-comment"> */</span>
</span><span id="117" class="l"><a class="l" href="#117">117: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getCacheDir" href="#_getCacheDir">getCacheDir</a>()
</span><span id="118" class="l"><a class="l" href="#118">118: </a> {
</span><span id="119" class="l"><a class="l" href="#119">119: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">defined</span>(<span class="php-quote">'THELIA_ROOT'</span>)) {
</span><span id="120" class="l"><a class="l" href="#120">120: </a> <span class="php-keyword1">return</span> THELIA_ROOT.<span class="php-quote">'cache/'</span>.<span class="php-var">$this</span>-&gt;environment;
</span><span id="121" class="l"><a class="l" href="#121">121: </a> } <span class="php-keyword1">else</span> {
</span><span id="122" class="l"><a class="l" href="#122">122: </a> <span class="php-keyword1">return</span> parent::getCacheDir();
</span><span id="123" class="l"><a class="l" href="#123">123: </a> }
</span><span id="124" class="l"><a class="l" href="#124">124: </a>
</span><span id="125" class="l"><a class="l" href="#125">125: </a> }
</span><span id="126" class="l"><a class="l" href="#126">126: </a>
</span><span id="127" class="l"><a class="l" href="#127">127: </a> <span class="php-comment">/**
</span></span><span id="128" class="l"><a class="l" href="#128">128: </a><span class="php-comment"> * Gets the log directory.
</span></span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment"> *
</span></span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment"> * @return string The log directory
</span></span><span id="131" class="l"><a class="l" href="#131">131: </a><span class="php-comment"> *
</span></span><span id="132" class="l"><a class="l" href="#132">132: </a><span class="php-comment"> * @api
</span></span><span id="133" class="l"><a class="l" href="#133">133: </a><span class="php-comment"> */</span>
</span><span id="134" class="l"><a class="l" href="#134">134: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getLogDir" href="#_getLogDir">getLogDir</a>()
</span><span id="135" class="l"><a class="l" href="#135">135: </a> {
</span><span id="136" class="l"><a class="l" href="#136">136: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">defined</span>(<span class="php-quote">'THELIA_ROOT'</span>)) {
</span><span id="137" class="l"><a class="l" href="#137">137: </a> <span class="php-keyword1">return</span> THELIA_ROOT.<span class="php-quote">'log/'</span>;
</span><span id="138" class="l"><a class="l" href="#138">138: </a> } <span class="php-keyword1">else</span> {
</span><span id="139" class="l"><a class="l" href="#139">139: </a> <span class="php-keyword1">return</span> parent::getLogDir();
</span><span id="140" class="l"><a class="l" href="#140">140: </a> }
</span><span id="141" class="l"><a class="l" href="#141">141: </a> }
</span><span id="142" class="l"><a class="l" href="#142">142: </a>
</span><span id="143" class="l"><a class="l" href="#143">143: </a> <span class="php-comment">/**
</span></span><span id="144" class="l"><a class="l" href="#144">144: </a><span class="php-comment"> * Builds the service container.
</span></span><span id="145" class="l"><a class="l" href="#145">145: </a><span class="php-comment"> *
</span></span><span id="146" class="l"><a class="l" href="#146">146: </a><span class="php-comment"> * @return ContainerBuilder The compiled service container
</span></span><span id="147" class="l"><a class="l" href="#147">147: </a><span class="php-comment"> */</span>
</span><span id="148" class="l"><a class="l" href="#148">148: </a><span class="php-comment">// protected function buildContainer()</span>
</span><span id="149" class="l"><a class="l" href="#149">149: </a><span class="php-comment">// {</span>
</span><span id="150" class="l"><a class="l" href="#150">150: </a><span class="php-comment">// $container = $this-&gt;getContainerBuilder();</span>
</span><span id="151" class="l"><a class="l" href="#151">151: </a><span class="php-comment">// $container-&gt;set('kernel', $this);</span>
</span><span id="152" class="l"><a class="l" href="#152">152: </a><span class="php-comment">//</span>
</span><span id="153" class="l"><a class="l" href="#153">153: </a><span class="php-comment">// foreach ($this-&gt;bundles as $bundle) {</span>
</span><span id="154" class="l"><a class="l" href="#154">154: </a><span class="php-comment">// $bundle-&gt;build($container);</span>
</span><span id="155" class="l"><a class="l" href="#155">155: </a><span class="php-comment">// }</span>
</span><span id="156" class="l"><a class="l" href="#156">156: </a><span class="php-comment">//</span>
</span><span id="157" class="l"><a class="l" href="#157">157: </a><span class="php-comment">// return $container;</span>
</span><span id="158" class="l"><a class="l" href="#158">158: </a><span class="php-comment">// }</span>
</span><span id="159" class="l"><a class="l" href="#159">159: </a>
</span><span id="160" class="l"><a class="l" href="#160">160: </a> <span class="php-comment">/**
</span></span><span id="161" class="l"><a class="l" href="#161">161: </a><span class="php-comment"> * return available bundle
</span></span><span id="162" class="l"><a class="l" href="#162">162: </a><span class="php-comment"> *
</span></span><span id="163" class="l"><a class="l" href="#163">163: </a><span class="php-comment"> * Part of Symfony\Component\HttpKernel\KernelInterface
</span></span><span id="164" class="l"><a class="l" href="#164">164: </a><span class="php-comment"> *
</span></span><span id="165" class="l"><a class="l" href="#165">165: </a><span class="php-comment"> * @return array An array of bundle instances.
</span></span><span id="166" class="l"><a class="l" href="#166">166: </a><span class="php-comment"> *
</span></span><span id="167" class="l"><a class="l" href="#167">167: </a><span class="php-comment"> */</span>
</span><span id="168" class="l"><a class="l" href="#168">168: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_registerBundles" href="#_registerBundles">registerBundles</a>()
</span><span id="169" class="l"><a class="l" href="#169">169: </a> {
</span><span id="170" class="l"><a class="l" href="#170">170: </a> <span class="php-var">$bundles</span> = <span class="php-keyword1">array</span>(
</span><span id="171" class="l"><a class="l" href="#171">171: </a> <span class="php-comment">/* TheliaBundle contain all the dependency injection description */</span>
</span><span id="172" class="l"><a class="l" href="#172">172: </a> <span class="php-keyword1">new</span> Bundle\TheliaBundle()
</span><span id="173" class="l"><a class="l" href="#173">173: </a> );
</span><span id="174" class="l"><a class="l" href="#174">174: </a>
</span><span id="175" class="l"><a class="l" href="#175">175: </a> <span class="php-comment">/**
</span></span><span id="176" class="l"><a class="l" href="#176">176: </a><span class="php-comment"> * OTHER CORE BUNDLE CAN BE DECLARE HERE AND INITIALIZE WITH SPECIFIC CONFIGURATION
</span></span><span id="177" class="l"><a class="l" href="#177">177: </a><span class="php-comment"> *
</span></span><span id="178" class="l"><a class="l" href="#178">178: </a><span class="php-comment"> * HOW TO DECLARE OTHER BUNDLE ? ETC
</span></span><span id="179" class="l"><a class="l" href="#179">179: </a><span class="php-comment"> */</span>
</span><span id="180" class="l"><a class="l" href="#180">180: </a>
</span><span id="181" class="l"><a class="l" href="#181">181: </a> <span class="php-keyword1">return</span> <span class="php-var">$bundles</span>;
</span><span id="182" class="l"><a class="l" href="#182">182: </a>
</span><span id="183" class="l"><a class="l" href="#183">183: </a> }
</span><span id="184" class="l"><a class="l" href="#184">184: </a>
</span><span id="185" class="l"><a class="l" href="#185">185: </a> <span class="php-comment">/**
</span></span><span id="186" class="l"><a class="l" href="#186">186: </a><span class="php-comment"> * Loads the container configuration
</span></span><span id="187" class="l"><a class="l" href="#187">187: </a><span class="php-comment"> *
</span></span><span id="188" class="l"><a class="l" href="#188">188: </a><span class="php-comment"> * part of Symfony\Component\HttpKernel\KernelInterface
</span></span><span id="189" class="l"><a class="l" href="#189">189: </a><span class="php-comment"> *
</span></span><span id="190" class="l"><a class="l" href="#190">190: </a><span class="php-comment"> * @param LoaderInterface $loader A LoaderInterface instance
</span></span><span id="191" class="l"><a class="l" href="#191">191: </a><span class="php-comment"> *
</span></span><span id="192" class="l"><a class="l" href="#192">192: </a><span class="php-comment"> * @api
</span></span><span id="193" class="l"><a class="l" href="#193">193: </a><span class="php-comment"> */</span>
</span><span id="194" class="l"><a class="l" href="#194">194: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_registerContainerConfiguration" href="#_registerContainerConfiguration">registerContainerConfiguration</a>(LoaderInterface <span class="php-var">$loader</span>)
</span><span id="195" class="l"><a class="l" href="#195">195: </a> {
</span><span id="196" class="l"><a class="l" href="#196">196: </a> <span class="php-comment">//Nothing is load here but it's possible to load container configuration here.</span>
</span><span id="197" class="l"><a class="l" href="#197">197: </a> <span class="php-comment">//exemple in sf2 : $loader-&gt;load(__DIR__.'/config/config_'.$this-&gt;getEnvironment().'.yml');</span>
</span><span id="198" class="l"><a class="l" href="#198">198: </a> }
</span><span id="199" class="l"><a class="l" href="#199">199: </a>
</span><span id="200" class="l"><a class="l" href="#200">200: </a>}
</span><span id="201" class="l"><a class="l" href="#201">201: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -125,80 +125,111 @@
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment">/* email : info@thelia.net */</span>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment">/* web : http://www.thelia.net */</span>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/* */</span>
</span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment">/* This program is free software; you can redistribute it and/or modify */</span>
</span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment">/* it under the terms of the GNU General Public License as published by */</span>
</span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment">/* the Free Software Foundation; either version 3 of the License */</span>
</span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment">/* */</span>
</span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment">/* This program is distributed in the hope that it will be useful, */</span>
</span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment">/* but WITHOUT ANY WARRANTY; without even the implied warranty of */</span>
</span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment">/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */</span>
</span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment">/* GNU General Public License for more details. */</span>
</span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment">/* */</span>
</span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment">/* You should have received a copy of the GNU General Public License */</span>
</span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment">/* along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;. */</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment">/* */</span>
</span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment">/*************************************************************************************/</span>
</span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-keyword1">namespace</span> Thelia\Core;
</span><span id="24" class="l"><a class="l" href="#24">24: </a>
</span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\HttpKernel;
</span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\HttpKernelInterface;
</span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Request;
</span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
</span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-keyword1">use</span> Symfony\Component\DependencyInjection\ContainerInterface;
</span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-keyword1">use</span> Symfony\Component\EventDispatcher\EventDispatcherInterface;
</span><span id="31" class="l"><a class="l" href="#31">31: </a>
</span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment">/**
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> *
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a>
</span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-keyword1">class</span> <a id="TheliaHttpKernel" href="#TheliaHttpKernel">TheliaHttpKernel</a> <span class="php-keyword1">extends</span> HttpKernel
</span><span id="38" class="l"><a class="l" href="#38">38: </a>{
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(EventDispatcherInterface <span class="php-var">$dispatcher</span>, ContainerInterface <span class="php-var">$container</span>, ControllerResolverInterface <span class="php-var">$controllerResolver</span>)
</span><span id="40" class="l"><a class="l" href="#40">40: </a> {
</span><span id="41" class="l"><a class="l" href="#41">41: </a> parent::__construct(<span class="php-var">$dispatcher</span>, <span class="php-var">$controllerResolver</span>);
</span><span id="42" class="l"><a class="l" href="#42">42: </a>
</span><span id="43" class="l"><a class="l" href="#43">43: </a> <span class="php-var">$this</span>-&gt;container = <span class="php-var">$container</span>;
</span><span id="44" class="l"><a class="l" href="#44">44: </a> }
</span><span id="45" class="l"><a class="l" href="#45">45: </a>
</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-comment">/**
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * Handles a Request to convert it to a Response.
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> *
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * When $catch is true, the implementation must catch all exceptions
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> * and do its best to convert them to a Response instance.
</span></span><span id="51" class="l"><a class="l" href="#51">51: </a><span class="php-comment"> *
</span></span><span id="52" class="l"><a class="l" href="#52">52: </a><span class="php-comment"> * @param Request $request A Request instance
</span></span><span id="53" class="l"><a class="l" href="#53">53: </a><span class="php-comment"> * @param integer $type The type of the request
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> * (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
</span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> * @param Boolean $catch Whether to catch exceptions or not
</span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> *
</span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> * @return Response A Response instance
</span></span><span id="58" class="l"><a class="l" href="#58">58: </a><span class="php-comment"> *
</span></span><span id="59" class="l"><a class="l" href="#59">59: </a><span class="php-comment"> * @throws \Exception When an Exception occurs during processing
</span></span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="php-comment"> *
</span></span><span id="61" class="l"><a class="l" href="#61">61: </a><span class="php-comment"> * @api
</span></span><span id="62" class="l"><a class="l" href="#62">62: </a><span class="php-comment"> */</span>
</span><span id="63" class="l"><a class="l" href="#63">63: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_handle" href="#_handle">handle</a>(Request <span class="php-var">$request</span>, <span class="php-var">$type</span> = HttpKernelInterface::MASTER_REQUEST, <span class="php-var">$catch</span> = <span class="php-keyword1">true</span>)
</span><span id="64" class="l"><a class="l" href="#64">64: </a> {
</span><span id="65" class="l"><a class="l" href="#65">65: </a> <span class="php-comment">//$request-&gt;headers-&gt;set('X-Php-Ob-Level', ob_get_level());</span>
</span><span id="66" class="l"><a class="l" href="#66">66: </a>
</span><span id="67" class="l"><a class="l" href="#67">67: </a> <span class="php-var">$this</span>-&gt;container-&gt;enterScope(<span class="php-quote">'request'</span>);
</span><span id="68" class="l"><a class="l" href="#68">68: </a> <span class="php-var">$this</span>-&gt;container-&gt;set(<span class="php-quote">'request'</span>, <span class="php-var">$request</span>, <span class="php-quote">'request'</span>);
</span><span id="69" class="l"><a class="l" href="#69">69: </a>
</span><span id="70" class="l"><a class="l" href="#70">70: </a> <span class="php-keyword1">try</span> {
</span><span id="71" class="l"><a class="l" href="#71">71: </a> <span class="php-var">$response</span> = parent::handle(<span class="php-var">$request</span>, <span class="php-var">$type</span>, <span class="php-var">$catch</span>);
</span><span id="72" class="l"><a class="l" href="#72">72: </a> } <span class="php-keyword1">catch</span> (\Exception <span class="php-var">$e</span>) {
</span><span id="73" class="l"><a class="l" href="#73">73: </a> <span class="php-var">$this</span>-&gt;container-&gt;leaveScope(<span class="php-quote">'request'</span>);
</span><span id="74" class="l"><a class="l" href="#74">74: </a>
</span><span id="75" class="l"><a class="l" href="#75">75: </a> <span class="php-keyword1">throw</span> <span class="php-var">$e</span>;
</span><span id="76" class="l"><a class="l" href="#76">76: </a> }
</span><span id="77" class="l"><a class="l" href="#77">77: </a>
</span><span id="78" class="l"><a class="l" href="#78">78: </a> <span class="php-var">$this</span>-&gt;container-&gt;leaveScope(<span class="php-quote">'request'</span>);
</span><span id="79" class="l"><a class="l" href="#79">79: </a>
</span><span id="80" class="l"><a class="l" href="#80">80: </a> <span class="php-keyword1">return</span> <span class="php-var">$response</span>;
</span><span id="81" class="l"><a class="l" href="#81">81: </a> }
</span><span id="82" class="l"><a class="l" href="#82">82: </a>}
</span><span id="83" class="l"><a class="l" href="#83">83: </a></span></code></pre>
</span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment">/* This program is free software; you can redistribute it and/or modify */</span>
</span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment">/* it under the terms of the GNU General Public License as published by */</span>
</span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-comment">/* the Free Software Foundation; either version 3 of the License */</span>
</span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-comment">/* */</span>
</span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment">/* This program is distributed in the hope that it will be useful, */</span>
</span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-comment">/* but WITHOUT ANY WARRANTY; without even the implied warranty of */</span>
</span><span id="16" class="l"><a class="l" href="#16"> 16: </a><span class="php-comment">/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */</span>
</span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment">/* GNU General Public License for more details. */</span>
</span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment">/* */</span>
</span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment">/* You should have received a copy of the GNU General Public License */</span>
</span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment">/* along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;. */</span>
</span><span id="21" class="l"><a class="l" href="#21"> 21: </a><span class="php-comment">/* */</span>
</span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment">/*************************************************************************************/</span>
</span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-keyword1">namespace</span> Thelia\Core;
</span><span id="24" class="l"><a class="l" href="#24"> 24: </a>
</span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\HttpKernel;
</span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\HttpKernelInterface;
</span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Request;
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-keyword1">use</span> Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-keyword1">use</span> Symfony\Component\DependencyInjection\ContainerInterface;
</span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-keyword1">use</span> Symfony\Component\EventDispatcher\EventDispatcherInterface;
</span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-keyword1">use</span> Symfony\Component\HttpFoundation\Session;
</span><span id="32" class="l"><a class="l" href="#32"> 32: </a>
</span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-keyword1">use</span> Thelia\Model;
</span><span id="34" class="l"><a class="l" href="#34"> 34: </a>
</span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment">/**
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> *
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> * @author Manuel Raynaud &lt;mraynaud@openstudio.fr&gt;
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a>
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-keyword1">class</span> <a id="TheliaHttpKernel" href="#TheliaHttpKernel">TheliaHttpKernel</a> <span class="php-keyword1">extends</span> HttpKernel
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a>{
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(EventDispatcherInterface <span class="php-var">$dispatcher</span>, ContainerInterface <span class="php-var">$container</span>, ControllerResolverInterface <span class="php-var">$controllerResolver</span>)
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a> {
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a> parent::__construct(<span class="php-var">$dispatcher</span>, <span class="php-var">$controllerResolver</span>);
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a>
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a> <span class="php-var">$this</span>-&gt;container = <span class="php-var">$container</span>;
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> }
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a>
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> <span class="php-comment">/**
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> * Handles a Request to convert it to a Response.
</span></span><span id="51" class="l"><a class="l" href="#51"> 51: </a><span class="php-comment"> *
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> * When $catch is true, the implementation must catch all exceptions
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> * and do its best to convert them to a Response instance.
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> *
</span></span><span id="55" class="l"><a class="l" href="#55"> 55: </a><span class="php-comment"> * @param Request $request A Request instance
</span></span><span id="56" class="l"><a class="l" href="#56"> 56: </a><span class="php-comment"> * @param integer $type The type of the request
</span></span><span id="57" class="l"><a class="l" href="#57"> 57: </a><span class="php-comment"> * (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> * @param Boolean $catch Whether to catch exceptions or not
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> *
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> * @return Response A Response instance
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> *
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> * @throws \Exception When an Exception occurs during processing
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> *
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> * @api
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> */</span>
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_handle" href="#_handle">handle</a>(Request <span class="php-var">$request</span>, <span class="php-var">$type</span> = HttpKernelInterface::MASTER_REQUEST, <span class="php-var">$catch</span> = <span class="php-keyword1">true</span>)
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> {
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-comment">//$request-&gt;headers-&gt;set('X-Php-Ob-Level', ob_get_level());</span>
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-var">$request</span> = <span class="php-var">$this</span>-&gt;initSession(<span class="php-var">$request</span>);
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-var">$this</span>-&gt;container-&gt;enterScope(<span class="php-quote">'request'</span>);
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-var">$this</span>-&gt;container-&gt;set(<span class="php-quote">'request'</span>, <span class="php-var">$request</span>, <span class="php-quote">'request'</span>);
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a>
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-keyword1">try</span> {
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-var">$response</span> = parent::handle(<span class="php-var">$request</span>, <span class="php-var">$type</span>, <span class="php-var">$catch</span>);
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> } <span class="php-keyword1">catch</span> (\Exception <span class="php-var">$e</span>) {
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a> <span class="php-var">$this</span>-&gt;container-&gt;leaveScope(<span class="php-quote">'request'</span>);
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a>
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> <span class="php-keyword1">throw</span> <span class="php-var">$e</span>;
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> }
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-var">$this</span>-&gt;container-&gt;leaveScope(<span class="php-quote">'request'</span>);
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-keyword1">return</span> <span class="php-var">$response</span>;
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a> }
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a>
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_initSession" href="#_initSession">initSession</a>(Request <span class="php-var">$request</span>)
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> {
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-var">$storage</span> = <span class="php-keyword1">new</span> Session\Storage\NativeSessionStorage();
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a>
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-keyword1">if</span> (Model\ConfigQuery::read(<span class="php-quote">&quot;session_config.default&quot;</span>)) {
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-var">$storage</span>-&gt;setSaveHandler(<span class="php-keyword1">new</span> Session\Storage\Handler\NativeFileSessionHandler(Model\ConfigQuery::read(<span class="php-quote">&quot;session_config.save_path&quot;</span>, THELIA_ROOT . <span class="php-quote">'/local/session/'</span>)));
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> } <span class="php-keyword1">else</span> {
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-var">$handlerString</span> = Model\ConfigQuery::read(<span class="php-quote">&quot;session_config.handlers&quot;</span>);
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a>
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-var">$handler</span> = <span class="php-keyword1">new</span> <span class="php-var">$handlerString</span>;
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a>
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-var">$storage</span>-&gt;setSaveHandler(<span class="php-var">$handler</span>);
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> }
</span><span id="100" class="l"><a class="l" href="#100">100: </a>
</span><span id="101" class="l"><a class="l" href="#101">101: </a> <span class="php-keyword1">if</span> (Model\ConfigQuery::read(<span class="php-quote">&quot;session_config.config&quot;</span>, <span class="php-keyword1">null</span>)) {
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-var">$storage</span>-&gt;setOptions(<span class="php-keyword2">json_decode</span>(Model\ConfigQuery::read(<span class="php-quote">&quot;session_config.config&quot;</span>)));
</span><span id="103" class="l"><a class="l" href="#103">103: </a> }
</span><span id="104" class="l"><a class="l" href="#104">104: </a>
</span><span id="105" class="l"><a class="l" href="#105">105: </a>
</span><span id="106" class="l"><a class="l" href="#106">106: </a> <span class="php-var">$session</span> = <span class="php-keyword1">new</span> Session\Session(<span class="php-var">$storage</span>);
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-var">$session</span>-&gt;start();
</span><span id="108" class="l"><a class="l" href="#108">108: </a>
</span><span id="109" class="l"><a class="l" href="#109">109: </a> <span class="php-var">$request</span>-&gt;setSession(<span class="php-var">$session</span>);
</span><span id="110" class="l"><a class="l" href="#110">110: </a>
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">return</span> <span class="php-var">$request</span>;
</span><span id="112" class="l"><a class="l" href="#112">112: </a> }
</span><span id="113" class="l"><a class="l" href="#113">113: </a>}
</span><span id="114" class="l"><a class="l" href="#114">114: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -419,7 +419,7 @@
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> */</span>
</span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-keyword1">class</span> <a id="ConfigQuery" href="#ConfigQuery">ConfigQuery</a> <span class="php-keyword1">extends</span> BaseConfigQuery
</span><span id="20" class="l"><a class="l" href="#20">20: </a>{
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_read" href="#_read">read</a>(<span class="php-var">$search</span>, <span class="php-var">$default</span>)
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_read" href="#_read">read</a>(<span class="php-var">$search</span>, <span class="php-var">$default</span> = <span class="php-keyword1">null</span>)
</span><span id="22" class="l"><a class="l" href="#22">22: </a> {
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-var">$value</span> = self::create()-&gt;findOneByName(<span class="php-var">$search</span>);
</span><span id="24" class="l"><a class="l" href="#24">24: </a>

View File

@@ -256,35 +256,36 @@
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-var">$this</span>-&gt;addPrimaryKey(<span class="php-quote">'ID'</span>, <span class="php-quote">'Id'</span>, <span class="php-quote">'INTEGER'</span>, <span class="php-keyword1">true</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'TITLE'</span>, <span class="php-quote">'Title'</span>, <span class="php-quote">'VARCHAR'</span>, <span class="php-keyword1">false</span>, <span class="php-num">100</span>, <span class="php-keyword1">null</span>);
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'CODE'</span>, <span class="php-quote">'Code'</span>, <span class="php-quote">'VARCHAR'</span>, <span class="php-keyword1">false</span>, <span class="php-num">10</span>, <span class="php-keyword1">null</span>);
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'URL'</span>, <span class="php-quote">'Url'</span>, <span class="php-quote">'VARCHAR'</span>, <span class="php-keyword1">false</span>, <span class="php-num">255</span>, <span class="php-keyword1">null</span>);
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'BY_DEFAULT'</span>, <span class="php-quote">'ByDefault'</span>, <span class="php-quote">'TINYINT'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'CREATED_AT'</span>, <span class="php-quote">'CreatedAt'</span>, <span class="php-quote">'TIMESTAMP'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'UPDATED_AT'</span>, <span class="php-quote">'UpdatedAt'</span>, <span class="php-quote">'TIMESTAMP'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-comment">// validators</span>
</span><span id="53" class="l"><a class="l" href="#53">53: </a> } <span class="php-comment">// initialize()</span>
</span><span id="54" class="l"><a class="l" href="#54">54: </a>
</span><span id="55" class="l"><a class="l" href="#55">55: </a> <span class="php-comment">/**
</span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> * Build the RelationMap objects for this table relationships
</span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> */</span>
</span><span id="58" class="l"><a class="l" href="#58">58: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_buildRelations" href="#_buildRelations">buildRelations</a>()
</span><span id="59" class="l"><a class="l" href="#59">59: </a> {
</span><span id="60" class="l"><a class="l" href="#60">60: </a> } <span class="php-comment">// buildRelations()</span>
</span><span id="61" class="l"><a class="l" href="#61">61: </a>
</span><span id="62" class="l"><a class="l" href="#62">62: </a> <span class="php-comment">/**
</span></span><span id="63" class="l"><a class="l" href="#63">63: </a><span class="php-comment"> *
</span></span><span id="64" class="l"><a class="l" href="#64">64: </a><span class="php-comment"> * Gets the list of behaviors registered for this table
</span></span><span id="65" class="l"><a class="l" href="#65">65: </a><span class="php-comment"> *
</span></span><span id="66" class="l"><a class="l" href="#66">66: </a><span class="php-comment"> * @return array Associative array (name =&gt; parameters) of behaviors
</span></span><span id="67" class="l"><a class="l" href="#67">67: </a><span class="php-comment"> */</span>
</span><span id="68" class="l"><a class="l" href="#68">68: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getBehaviors" href="#_getBehaviors">getBehaviors</a>()
</span><span id="69" class="l"><a class="l" href="#69">69: </a> {
</span><span id="70" class="l"><a class="l" href="#70">70: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">array</span>(
</span><span id="71" class="l"><a class="l" href="#71">71: </a> <span class="php-quote">'timestampable'</span> =&gt; <span class="php-keyword1">array</span>(<span class="php-quote">'create_column'</span> =&gt; <span class="php-quote">'created_at'</span>, <span class="php-quote">'update_column'</span> =&gt; <span class="php-quote">'updated_at'</span>, <span class="php-quote">'disable_updated_at'</span> =&gt; <span class="php-quote">'false'</span>, ),
</span><span id="72" class="l"><a class="l" href="#72">72: </a> );
</span><span id="73" class="l"><a class="l" href="#73">73: </a> } <span class="php-comment">// getBehaviors()</span>
</span><span id="74" class="l"><a class="l" href="#74">74: </a>
</span><span id="75" class="l"><a class="l" href="#75">75: </a>} <span class="php-comment">// LangTableMap</span>
</span><span id="76" class="l"><a class="l" href="#76">76: </a></span></code></pre>
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'LOCALE'</span>, <span class="php-quote">'Locale'</span>, <span class="php-quote">'VARCHAR'</span>, <span class="php-keyword1">false</span>, <span class="php-num">45</span>, <span class="php-keyword1">null</span>);
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'URL'</span>, <span class="php-quote">'Url'</span>, <span class="php-quote">'VARCHAR'</span>, <span class="php-keyword1">false</span>, <span class="php-num">255</span>, <span class="php-keyword1">null</span>);
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'BY_DEFAULT'</span>, <span class="php-quote">'ByDefault'</span>, <span class="php-quote">'TINYINT'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'CREATED_AT'</span>, <span class="php-quote">'CreatedAt'</span>, <span class="php-quote">'TIMESTAMP'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-var">$this</span>-&gt;addColumn(<span class="php-quote">'UPDATED_AT'</span>, <span class="php-quote">'UpdatedAt'</span>, <span class="php-quote">'TIMESTAMP'</span>, <span class="php-keyword1">false</span>, <span class="php-keyword1">null</span>, <span class="php-keyword1">null</span>);
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-comment">// validators</span>
</span><span id="54" class="l"><a class="l" href="#54">54: </a> } <span class="php-comment">// initialize()</span>
</span><span id="55" class="l"><a class="l" href="#55">55: </a>
</span><span id="56" class="l"><a class="l" href="#56">56: </a> <span class="php-comment">/**
</span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> * Build the RelationMap objects for this table relationships
</span></span><span id="58" class="l"><a class="l" href="#58">58: </a><span class="php-comment"> */</span>
</span><span id="59" class="l"><a class="l" href="#59">59: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_buildRelations" href="#_buildRelations">buildRelations</a>()
</span><span id="60" class="l"><a class="l" href="#60">60: </a> {
</span><span id="61" class="l"><a class="l" href="#61">61: </a> } <span class="php-comment">// buildRelations()</span>
</span><span id="62" class="l"><a class="l" href="#62">62: </a>
</span><span id="63" class="l"><a class="l" href="#63">63: </a> <span class="php-comment">/**
</span></span><span id="64" class="l"><a class="l" href="#64">64: </a><span class="php-comment"> *
</span></span><span id="65" class="l"><a class="l" href="#65">65: </a><span class="php-comment"> * Gets the list of behaviors registered for this table
</span></span><span id="66" class="l"><a class="l" href="#66">66: </a><span class="php-comment"> *
</span></span><span id="67" class="l"><a class="l" href="#67">67: </a><span class="php-comment"> * @return array Associative array (name =&gt; parameters) of behaviors
</span></span><span id="68" class="l"><a class="l" href="#68">68: </a><span class="php-comment"> */</span>
</span><span id="69" class="l"><a class="l" href="#69">69: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getBehaviors" href="#_getBehaviors">getBehaviors</a>()
</span><span id="70" class="l"><a class="l" href="#70">70: </a> {
</span><span id="71" class="l"><a class="l" href="#71">71: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">array</span>(
</span><span id="72" class="l"><a class="l" href="#72">72: </a> <span class="php-quote">'timestampable'</span> =&gt; <span class="php-keyword1">array</span>(<span class="php-quote">'create_column'</span> =&gt; <span class="php-quote">'created_at'</span>, <span class="php-quote">'update_column'</span> =&gt; <span class="php-quote">'updated_at'</span>, <span class="php-quote">'disable_updated_at'</span> =&gt; <span class="php-quote">'false'</span>, ),
</span><span id="73" class="l"><a class="l" href="#73">73: </a> );
</span><span id="74" class="l"><a class="l" href="#74">74: </a> } <span class="php-comment">// getBehaviors()</span>
</span><span id="75" class="l"><a class="l" href="#75">75: </a>
</span><span id="76" class="l"><a class="l" href="#76">76: </a>} <span class="php-comment">// LangTableMap</span>
</span><span id="77" class="l"><a class="l" href="#77">77: </a></span></code></pre>
<div id="footer">
thelia API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

File diff suppressed because it is too large Load Diff