Pchp.Library.Streams.StreamWrapper.GetSystemWrapperSchemes C# (CSharp) Method

GetSystemWrapperSchemes() public static method

Gets the list of built-in stream wrapper schemes.
public static GetSystemWrapperSchemes ( ) : ICollection
return ICollection
        public static ICollection<string> GetSystemWrapperSchemes()
        {
            var keys = new string[systemStreamWrappers.Count];
            systemStreamWrappers.Keys.CopyTo(keys, 0);
            return keys;
        }

Usage Example

Ejemplo n.º 1
0
        ///<summary>Retrieve list of registered streams (only the names)</summary>
        public static PhpArray stream_get_wrappers(Context ctx)
        {
            var ret = new PhpArray(8);

            // First add the internal built-in wrappers.
            var internals = StreamWrapper.GetSystemWrapperSchemes();

            foreach (var scheme in internals)
            {
                ret.Add(scheme);
            }

            // Now add the indexes (schemes) of User wrappers.
            foreach (var scheme in StreamWrapper.GetUserWrapperSchemes(ctx))
            {
                ret.Add(scheme);
            }

            //
            return(ret);
        }