PEEL Shopping
Open source ecommerce : PEEL Shopping
modifiercompiler.to_charset.php
Go to the documentation of this file.
1 <?php
20 function smarty_modifiercompiler_to_charset($params, $compiler)
21 {
22  if (!Smarty::$_MBSTRING) {
23  // FIXME: (rodneyrehm) shouldn't this throw an error?
24  return $params[0];
25  }
26 
27  if (!isset($params[1])) {
28  $params[1] = '"ISO-8859-1"';
29  }
30 
31  return 'mb_convert_encoding(' . $params[0] . ', ' . $params[1] . ', "' . addslashes(Smarty::$_CHARSET) . '")';
32 }
33 
34 ?>
smarty_modifiercompiler_to_charset($params, $compiler)
Smarty to_charset modifier plugin.
static $_MBSTRING
Flag denoting if Multibyte String functions are available.
static $_CHARSET
The character set to adhere to (e.g.

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:16 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.