src/jShutdownManager.php
static public function isRegistered( $callBack = null, $returnPriority = false )
	{
		if( null === $callBack )
		{
			return self::$_registered;
		}
		if( is_int( $callBack ) )
		{
			return isset( self::$_registeredCallbacks[ $callBack ] ) ? ( $returnPriority ? self::$_registeredCallbacks[ $callBack ][ 1 ] : true ) : false;
		}
		foreach( self::$_registeredCallbacks as $cb )
		{
			if( $cb[ 0 ] === $callBack )
			{
				return $returnPriority ? $cb[ 1 ] : true;
			}
		}
		return false;
	}
static public function isRegistered( $callBack = null, $returnPriority = false )
	{
		if( null === $callBack )
		{
			return self::$_registered;
		}
		if( is_int( $callBack ) )
		{
			return isset( self::$_registeredCallbacks[ $callBack ] ) ? ( $returnPriority ? self::$_registeredCallbacks[ $callBack ][ 1 ] : true ) : false;
		}
		foreach( self::$_registeredCallbacks as $cb )
		{
			if( $cb[ 0 ] === $callBack )
			{
				return $returnPriority ? $cb[ 1 ] : true;
			}
		}
		return false;
	}
static public function isRegistered ( $ callBack = null , $ returnPriority = false ) { if ( null === $ callBack ) { return self :: $ _registered ; } if ( is_int ( $ callBack ) ) { return isset ( self :: $ _registeredCallbacks [ $ callBack ] ) ? ( $ returnPriority ? self :: $ _registeredCallbacks [ $ callBack ] [ 1 ] : true ) : false ; } foreach ( self :: $ _registeredCallbacks as $ cb ) { if ( $ cb [ 0 ] === $ callBack ) { return $ returnPriority ? $ cb [ 1 ] : true ; } } return false ; }
Check that given callable is registered by shutdown manager. It also allow to check that jShutdownManager is registered itself
@param callback $callBack       check that the given callback (or id of registered callback return by register method) is registered (if null then check that smvcShutdownManager itself is registered)
@param bool     $returnPriority if true the actual priority level of the callback will be return instead of bool (be aware it may return 0 in such case that doesn't mean false)
@return bool or integer if $returnPriority is passed to true
Check that given callable is registered by shutdown manager . It also allow to check that jShutdownManager is registered itself