From 02fc4261cd86e1beb69d8db7c20a7387e5f10ca8 Mon Sep 17 00:00:00 2001 From: yamamoto Date: Sun, 30 Jun 2024 13:40:40 +0900 Subject: [PATCH] chore: Add Form class with text input function --- .../tool/mutate_settings/functions.inc.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manager/actions/tool/mutate_settings/functions.inc.php b/manager/actions/tool/mutate_settings/functions.inc.php index 5e302f1a9..3a93003d3 100644 --- a/manager/actions/tool/mutate_settings/functions.inc.php +++ b/manager/actions/tool/mutate_settings/functions.inc.php @@ -218,3 +218,18 @@ function settings() } return $settings; } + +class Form +{ + public static function text($name, $value, $attr = array()) + { + return sprintf( + strpos($value, '"') === false + ? '' + : '', + $name, + $value, + join_attr($attr) + ); + } +} \ No newline at end of file