• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/compiler.assign.php

00001 <?php
00019 function smarty_compiler_assign($tag_attrs, &$compiler)
00020 {
00021     $_params = $compiler->_parse_attrs($tag_attrs);
00022 
00023     if (!isset($_params['var'])) {
00024         $compiler->_syntax_error("assign: missing 'var' parameter", E_USER_WARNING);
00025         return;
00026     }
00027 
00028     if (!isset($_params['value'])) {
00029         $compiler->_syntax_error("assign: missing 'value' parameter", E_USER_WARNING);
00030         return;
00031     }
00032 
00033     return "\$this->assign({$_params['var']}, {$_params['value']});";
00034 }
00035 
00036 /* vim: set expandtab: */
00037 
00038 ?>

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2