Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
<?php
2
 
3
/**
4
 * Smarty Method ClearAllAssign
5
 *
6
 * Smarty::clearAllAssign() method
7
 *
8
 * @package    Smarty
9
 * @subpackage PluginsInternal
10
 * @author     Uwe Tews
11
 */
12
class Smarty_Internal_Method_ClearAllAssign
13
{
14
    /**
15
     * Valid for all objects
16
     *
17
     * @var int
18
     */
19
    public $objMap = 7;
20
 
21
    /**
22
     * clear all the assigned template variables.
23
     *
24
     * @api  Smarty::clearAllAssign()
25
     * @link http://www.smarty.net/docs/en/api.clear.all.assign.tpl
26
     *
27
     * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
28
     *
29
     * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
30
     */
31
    public function clearAllAssign(Smarty_Internal_Data $data)
32
    {
33
        $data->tpl_vars = array();
34
        return $data;
35
    }
36
}