From eeb294fd3e45e9524d6a80453bb603fd0d98bda0 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 19 Feb 2013 18:32:49 +0100 Subject: [PATCH] create secure BaseParam for testing with Tpex --- .../Thelia/Core/Template/BaseParam/Secure.php | 39 +++++++++++++++++++ core/lib/Thelia/Tpex | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 core/lib/Thelia/Core/Template/BaseParam/Secure.php diff --git a/core/lib/Thelia/Core/Template/BaseParam/Secure.php b/core/lib/Thelia/Core/Template/BaseParam/Secure.php new file mode 100644 index 000000000..54a347343 --- /dev/null +++ b/core/lib/Thelia/Core/Template/BaseParam/Secure.php @@ -0,0 +1,39 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Core\Template\BaseParam; + +use Thelia\Tpex\BaseParam\BaseParam; + +class Secure extends BaseParam +{ + public function exec() + { + $request = $this->getRequest(); + + if ($request->getSession()->get('connected') && $this->baseParamValue) { + + } + } +} + diff --git a/core/lib/Thelia/Tpex b/core/lib/Thelia/Tpex index b21d18f64..8eb9c28ea 160000 --- a/core/lib/Thelia/Tpex +++ b/core/lib/Thelia/Tpex @@ -1 +1 @@ -Subproject commit b21d18f64214358464f18661f2160f96bc4dd1f6 +Subproject commit 8eb9c28ea98db353883194be911dc74490d0c502