PEEL Shopping
Open source ecommerce : PEEL Shopping
modifiercompiler.count_characters.php
Go to the documentation of this file.
1 <?php
21 function smarty_modifiercompiler_count_characters($params, $compiler)
22 {
23  if (!isset($params[1]) || $params[1] != 'true') {
24  return 'preg_match_all(\'/[^\s]/' . Smarty::$_UTF8_MODIFIER . '\',' . $params[0] . ', $tmp)';
25  }
26  if (Smarty::$_MBSTRING) {
27  return 'mb_strlen(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')';
28  }
29  // no MBString fallback
30  return 'strlen(' . $params[0] . ')';
31 }
32 
33 ?>
static $_UTF8_MODIFIER
Flag denoting if PCRE should run in UTF-8 mode.
smarty_modifiercompiler_count_characters($params, $compiler)
Smarty count_characters modifier plugin.
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.