- md5
- 142e01513ba6784bd20108db2e021b8d
- sha1
- c2e395050d4a84548a72a5e302d478d89d7b0b30
- sha256
- 0fe76bbef6e98939cfc2c70de880829ba0bfb621d22605d93bc9fde0e27f1e19
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Utility class working with phpsetting
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
abstract class JHtmlPhpSetting
{
/**
* Method to generate a boolean message for a value
*
* @param boolean $val is the value set?
*
* @return string html code
*/
public static function boolean($val)
{
if ($val)
{
return JText::_('JON');
}
else
{
return JText::_('JOFF');
}
}
/**
* Method to generate a boolean message for a value
*
* @param boolean $val is the value set?
*
* @return string html code
*/
public static function set($val)
{
if ($val)
{
return JText::_('JYES');
}
else
{
return JText::_('JNO');
}
}
/**
* Method to generate a string message for a value
*
* @param string $val a php ini value
*
* @return string html code
*/
public static function string($val)
{
if (empty($val))
{
return JText::_('JNONE');
}
else
{
return $val;
}
}
/**
* Method to generate an integer from a value
*
* @param string $val a php ini value
*
* @return string html code
*
* @deprecated 4.0 Use intval() or casting instead.
*/
public static function integer($val)
{
JLog::add('JHtmlPhpSetting::integer() is deprecated. Use intval() or casting instead.', JLog::WARNING, 'deprecated');
return (int) $val;
}
}
The same content is in 7 releases, Joomla 3.0.3 to 3.1.6. See them all, or every version of this file.