b0y-101 Mini Shell


Current Path : E:/www/instructor/teacher20/libraries/fof30/Model/DataModel/Filter/
File Upload :
Current File : E:/www/instructor/teacher20/libraries/fof30/Model/DataModel/Filter/Boolean.php

<?php
/**
 * @package     FOF
 * @copyright   2010-2017 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license     GNU GPL version 2 or later
 */

namespace FOF30\Model\DataModel\Filter;

defined('_JEXEC') or die;

class Boolean extends Number
{
	/**
	 * 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 === '');
	}
} 

Copyright © 2019 by b0y-101