CoreFiles by mySites.guru
boolean.php30 lines, 688 bytes, from Joomla_3.4.0-Stable-Full_Package.zip
Raw History Compare with 3.3.6
md5
b256c639bec43f0593c337591f0e7eb1
sha1
81aabceaae343ba8af1d01d4ded5f0584231a7d2
sha256
7a8872d87075fcee92c38f41eb267048326c581d0ba5918732439eb699926ded
<?php
/**
 * @package     FrameworkOnFramework
 * @subpackage  model
 * @copyright   Copyright (C) 2010 - 2014 Akeeba Ltd. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// Protect from unauthorized access
defined('FOF_INCLUDED') 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 17 releases, Joomla 3.2.4 to 3.4.0. See them all, or every version of this file.