Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file function.form_id.php

Documentation is available at function.form_id.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * this generates a relatively unique ids for the
  10.  * ajax attachment portions of a form, which  must be uniquely identified
  11.  * when there are multiple forms enabling attachment uploads on one page.
  12.  */
  13.     if!isset$_SESSION['form_id_index') ){
  14.         $ret $_SESSION['form_id_index'1;
  15.     }else{
  16.         $ret $_SESSION['form_id_index']++ );
  17.     }
  18.     return $ret;
  19. }
  20. ?>

Documentation generated on Wed, 29 Jul 2015 13:56:38 +0000 by phpDocumentor 1.5.0-lsces