CoreFiles by mySites.guru
boolean.php30 lines, 682 bytes, from Joomla_3.2.3-Stable-Full_Package.zip
Raw History Compare with 3.2.2
md5
1e1c115d7c025a0731a6b5a8e552db2e
sha1
6841f8efaaeb49d4897f4abc93ab195ed2b36d95
sha256
b065d031845ec99b814b155953ce7b643d12e26f6831f4f24195260690e84f56
<?php
/**
 * @package     FrameworkOnFramework
 * @subpackage  model
 * @copyright   Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// Protect from unauthorized access
defined('_JEXEC') or die;

/**
 * FrameworkOnFramework model behavior class
 *
 * @package  FrameworkOnFramework
 * @since    2.1
 */
class FOFModelFieldBoolean extends FOFModelFieldNumber
{
	/**
	 * Is it a null or otherwise empty value?
	 *
	 * @param   mixed  $value  The value to test for emptiness
	 *
	 * @return  boolean
	 */
	public function isEmpty($value)
	{
		return is_null($value) || ($value === '');
	}
}

The same content is in 3 releases, Joomla 3.2.1 to 3.2.3. See them all, or every version of this file.