public static function getHandlers($name) {
        $name = strtolower($name);

        if (!isset(self::$handlers[$name])) {
            return [];
        }

        // See if the handlers need to be sorted.
        if (isset(self::$toSort[$name])) {
            ksort(self::$handlers[$name]);
            unset(self::$toSort[$name]);
        }

        return self::$handlers[$name];
    }
public static function getHandlers($name) {
        $name = strtolower($name);

        if (!isset(self::$handlers[$name])) {
            return [];
        }

        // See if the handlers need to be sorted.
        if (isset(self::$toSort[$name])) {
            ksort(self::$handlers[$name]);
            unset(self::$toSort[$name]);
        }

        return self::$handlers[$name];
    }
public static function getHandlers ( $ name ) { $ name = strtolower ( $ name ) ; if ( ! isset ( self :: $ handlers [ $ name ] ) ) { return [ ] ; } // See if the handlers need to be sorted. if ( isset ( self :: $ toSort [ $ name ] ) ) { ksort ( self :: $ handlers [ $ name ] ) ; unset ( self :: $ toSort [ $ name ] ) ; } return self :: $ handlers [ $ name ] ; }
Get all of the handlers bound to an event.

@param string $name The name of the event.
@return array Returns the handlers that are watching {@link $name}.
Get all of the handlers bound to an event .