You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smarty_internal_method_clearallassign.php 778B

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