public static function register()
    {
        if ( self::$hasBeenRegistered === true ) {
            return;
        }

        if ( stream_filter_register(self::getFilterName(), __CLASS__) === false ) {
            throw new RuntimeException('Failed to register stream filter: '.self::getFilterName());
        }

        self::$hasBeenRegistered = true;
    }
public static function register()
    {
        if ( self::$hasBeenRegistered === true ) {
            return;
        }

        if ( stream_filter_register(self::getFilterName(), __CLASS__) === false ) {
            throw new RuntimeException('Failed to register stream filter: '.self::getFilterName());
        }

        self::$hasBeenRegistered = true;
    }
public static function register ( ) { if ( self :: $ hasBeenRegistered === true ) { return ; } if ( stream_filter_register ( self :: getFilterName ( ) , __CLASS__ ) === false ) { throw new RuntimeException ( 'Failed to register stream filter: ' . self :: getFilterName ( ) ) ; } self :: $ hasBeenRegistered = true ; }
Register this class as a stream filter
@throws \RuntimeException
Register this class as a stream filter