mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-16 14:05:21 +02:00
36 lines
669 B
PHP
36 lines
669 B
PHP
<?php
|
|
|
|
/**
|
|
* Smarty method Clear_All_Assign
|
|
*
|
|
* Deletes all assigned Smarty variables at current level
|
|
*
|
|
* @package Smarty
|
|
* @subpackage SmartyMethod
|
|
* @author Uwe Tews
|
|
*/
|
|
|
|
/**
|
|
* Smarty class Clear_All_Assign
|
|
*
|
|
* Delete Smarty variables at current level
|
|
*/
|
|
|
|
class Smarty_Method_Clear_All_Assign extends Smarty_Internal_Base {
|
|
/**
|
|
* Delete Smarty variables
|
|
* @param object $data_object object which holds tpl_vars
|
|
*/
|
|
public function execute($data_object = null)
|
|
{
|
|
if (isset($data_object)) {
|
|
$ptr = $data_object;
|
|
} else {
|
|
$ptr = $this->smarty;
|
|
}
|
|
$ptr->tpl_vars = array();
|
|
}
|
|
}
|
|
|
|
?>
|