customer substitutions

This commit is contained in:
Etienne Roudeix
2013-09-05 17:54:04 +02:00
parent 40b524e9d6
commit a0f894d70f
2 changed files with 8 additions and 17 deletions

View File

@@ -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 * @return string
* @param unknown $smarty * @throws \InvalidArgumentException
* @return string the value of the requested attribute
* @throws InvalidArgumentException if the object does not have the requested attribute.
*/ */
protected function userDataAccess($objectLabel, $user, $params) protected function userDataAccess($objectLabel, $user, $params)
{ {
$attribute = $this->getNormalizedParam($params, array('attribute', 'attrib', 'attr')); $attribute = $this->getNormalizedParam($params, array('attribute', 'attrib', 'attr'));

View File

@@ -1,11 +1,2 @@
<h2>ALL ATTRIBUTES</h2> ::{customer attr="firstname"};;
::{customer attr="titleId"};;
<ul>
{loop name="attr" type="attribute"}
<li>
#TITLE - (#LOOP_COUNT / #LOOP_TOTAL)<br />
created at {format_date date=$CREATE_DATE} - updated at {format_date date=$UPDATE_DATE}
<hr />
</li>
{/loop}
</ul>