From a0f894d70f9fbc274f9ef9c98b04bce36eb6710f Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Thu, 5 Sep 2013 17:54:04 +0200 Subject: [PATCH] customer substitutions --- .../Template/Smarty/Plugins/DataAccessFunctions.php | 12 ++++++------ templates/default/debug.html | 13 ++----------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php index ee65f34b3..a2fd10c15 100755 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php @@ -68,14 +68,14 @@ class DataAccessFunctions extends AbstractSmartyPlugin } /** - * Provides access to user attributes using the accessors. + * @param $objectLabel + * @param $user + * @param $params * - * @param array $params - * @param unknown $smarty - * @return string the value of the requested attribute - * @throws InvalidArgumentException if the object does not have the requested attribute. + * @return string + * @throws \InvalidArgumentException */ - protected function userDataAccess($objectLabel, $user, $params) + protected function userDataAccess($objectLabel, $user, $params) { $attribute = $this->getNormalizedParam($params, array('attribute', 'attrib', 'attr')); diff --git a/templates/default/debug.html b/templates/default/debug.html index 461e8eed7..1c54c05a4 100755 --- a/templates/default/debug.html +++ b/templates/default/debug.html @@ -1,11 +1,2 @@ -

ALL ATTRIBUTES

- - \ No newline at end of file +::{customer attr="firstname"};; +::{customer attr="titleId"};; \ No newline at end of file