[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_admin 5 * 6 * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\Component\Admin\Administrator\Service\HTML; 11 12 \defined('_JEXEC') or die; 13 14 /** 15 * Class for rendering configuration values 16 * 17 * @since 4.0.0 18 */ 19 class Configuration 20 { 21 /** 22 * Method to generate a string for a value 23 * 24 * @param mixed $value The configuration value 25 * 26 * @return string Formatted and escaped string 27 * 28 * @since 4.0.0 29 */ 30 public function value($value): string 31 { 32 if (\is_bool($value)) 33 { 34 return $value ? 'true' : 'false'; 35 } 36 37 if (\is_array($value)) 38 { 39 $value = implode(', ', $value); 40 } 41 42 return htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); 43 } 44 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |