forked from kevinowino869/mitrobill
Sample
admin
docs
pages
qrcode
system
autoload
controllers
install
lan
uploads
vendors
mpdf
smarty
libs
plugins
block.textformat.php
function.counter.php
function.cycle.php
function.fetch.php
function.html_checkboxes.php
function.html_image.php
function.html_options.php
function.html_radios.php
function.html_select_date.php
function.html_select_time.php
function.html_table.php
function.mailto.php
function.math.php
modifier.capitalize.php
modifier.date_format.php
modifier.debug_print_var.php
modifier.escape.php
modifier.mb_wordwrap.php
modifier.regex_replace.php
modifier.replace.php
modifier.spacify.php
modifier.truncate.php
modifiercompiler.cat.php
modifiercompiler.count_characters.php
modifiercompiler.count_paragraphs.php
modifiercompiler.count_sentences.php
modifiercompiler.count_words.php
modifiercompiler.default.php
modifiercompiler.escape.php
modifiercompiler.from_charset.php
modifiercompiler.indent.php
modifiercompiler.lower.php
modifiercompiler.noprint.php
modifiercompiler.string_format.php
modifiercompiler.strip.php
modifiercompiler.strip_tags.php
modifiercompiler.to_charset.php
modifiercompiler.unescape.php
modifiercompiler.upper.php
modifiercompiler.wordwrap.php
outputfilter.trimwhitespace.php
shared.escape_special_chars.php
shared.literal_compiler_param.php
shared.make_timestamp.php
shared.mb_str_replace.php
shared.mb_unicode.php
variablefilter.htmlspecialchars.php
sysplugins
Autoloader.php
Smarty.class.php
SmartyBC.class.php
bootstrap.php
debug.tpl
COPYING.lib
index.html
index.html
boot.php
config.sample.php
cron.php
index.html
orm.php
ui
.gitignore
LICENSE
README.md
index.php
29 lines
678 B
PHP
29 lines
678 B
PHP
<?php
|
|
/**
|
|
* Smarty plugin
|
|
*
|
|
* @package Smarty
|
|
* @subpackage PluginsModifierCompiler
|
|
*/
|
|
/**
|
|
* Smarty upper modifier plugin
|
|
* Type: modifier
|
|
* Name: lower
|
|
* Purpose: convert string to uppercase
|
|
*
|
|
* @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual)
|
|
* @author Uwe Tews
|
|
*
|
|
* @param array $params parameters
|
|
*
|
|
* @return string with compiled code
|
|
*/
|
|
function smarty_modifiercompiler_upper($params)
|
|
{
|
|
if (Smarty::$_MBSTRING) {
|
|
return 'mb_strtoupper(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')';
|
|
}
|
|
// no MBString fallback
|
|
return 'strtoupper(' . $params[ 0 ] . ')';
|
|
}
|