public static function hasValue( $di )
	{
		$components = array( "s", "i", "h", "d", "m", "y" );
		$hasValue = false;
		foreach( $components as $component )
		{
			$hasValue = isset( $di->$component ) && $di->$component != 0;
			if ( $hasValue ) break;
		}
		return $hasValue;
	}
public static function hasValue( $di )
	{
		$components = array( "s", "i", "h", "d", "m", "y" );
		$hasValue = false;
		foreach( $components as $component )
		{
			$hasValue = isset( $di->$component ) && $di->$component != 0;
			if ( $hasValue ) break;
		}
		return $hasValue;
	}
public static function hasValue ( $ di ) { $ components = array ( "s" , "i" , "h" , "d" , "m" , "y" ) ; $ hasValue = false ; foreach ( $ components as $ component ) { $ hasValue = isset ( $ di -> $ component ) && $ di -> $ component != 0 ; if ( $ hasValue ) break ; } return $ hasValue ; }
Returns true if the date interval parameter has a non zero value
@param \DateInterval $di
@return bool
Returns true if the date interval parameter has a non zero value