From 8cdb47b003d7d050cab4605eb24c02d04981868a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 26 May 2013 13:05:53 -0400 Subject: [PATCH] Update PicoTools --- vendor/PicoTools/Helper.php | 19 +++++++++++++++++++ vendor/PicoTools/Translator.php | 12 ++++++++++++ 2 files changed, 31 insertions(+) diff --git a/vendor/PicoTools/Helper.php b/vendor/PicoTools/Helper.php index 85f57c0..a884898 100644 --- a/vendor/PicoTools/Helper.php +++ b/vendor/PicoTools/Helper.php @@ -164,6 +164,25 @@ function form_select($name, array $options, $values = array(), array $errors = a } +function form_radios($name, array $options, array $values = array()) +{ + $html = ''; + + foreach ($options as $value => $label) { + + $html .= form_radio($name, $label, $value, isset($values[$name]) && $values[$name] == $value); + } + + return $html; +} + + +function form_radio($name, $label, $value, $selected = false, $class = '') +{ + return ''; +} + + function form_label($label, $name, $class = '') { return ''; diff --git a/vendor/PicoTools/Translator.php b/vendor/PicoTools/Translator.php index 2e4dffb..9fa7d4b 100644 --- a/vendor/PicoTools/Translator.php +++ b/vendor/PicoTools/Translator.php @@ -128,6 +128,18 @@ namespace { } + function c() { + + return call_user_func_array('\PicoTools\Translator\currency', func_get_args()); + } + + + function n() { + + return call_user_func_array('\PicoTools\Translator\number', func_get_args()); + } + + function dt() { return call_user_func_array('\PicoTools\Translator\datetime', func_get_args());