Source for file boolean.php

Documentation is available at boolean.php

  1. <?php
  2. /**
  3.  * @package     FrameworkOnFramework
  4.  * @subpackage  model
  5.  * @copyright   Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
  6.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8. // Protect from unauthorized access
  9. defined('_JEXEC'or die;
  10.  
  11. /**
  12.  * FrameworkOnFramework model behavior class
  13.  *
  14.  * @package  FrameworkOnFramework
  15.  * @since    2.1
  16.  */
  17. {
  18.     /**
  19.      * Is it a null or otherwise empty value?
  20.      *
  21.      * @param   mixed  $value  The value to test for emptiness
  22.      *
  23.      * @return  boolean 
  24.      */
  25.     public function isEmpty($value)
  26.     {
  27.         return is_null($value|| ($value === '');
  28.     }
  29. }

Documentation generated on Tue, 19 Nov 2013 14:54:41 +0100 by phpDocumentor 1.4.3