コード例 #1
0
ファイル: ZipConfiguration.cs プロジェクト: jiahao42/weverca
        /// <summary>
        /// Gets, sets, or restores a value of a legacy configuration option.
        /// </summary>
        private static object GetSetRestore(LocalConfiguration config, string option, object value, IniAction action)
        {
            ZipLocalConfig  local    = (ZipLocalConfig)config.GetLibraryConfig(ZipLibraryDescriptor.Singleton);
            ZipLocalConfig  @default = DefaultLocal;
            ZipGlobalConfig global   = Global;

            //switch (option)
            //{
            //    // local:

            //    // global:

            //}

            Debug.Fail("Option '" + option + "' is supported but not implemented.");
            return(null);
        }
コード例 #2
0
        /// <summary>
        /// Writes Zip legacy options and their values to XML text stream.
        /// Skips options whose values are the same as default values of Phalanger.
        /// </summary>
        /// <param name="writer">XML writer.</param>
        /// <param name="options">A hashtable containing PHP names and option values. Consumed options are removed from the table.</param>
        /// <param name="writePhpNames">Whether to add "phpName" attribute to option nodes.</param>
        public static void LegacyOptionsToXml(XmlTextWriter writer, Hashtable options, bool writePhpNames) // GENERICS:<string,string>
        {
            if (writer == null)
                throw new ArgumentNullException("writer");
            if (options == null)
                throw new ArgumentNullException("options");

            ZipLocalConfig local = new ZipLocalConfig();
            ZipGlobalConfig global = new ZipGlobalConfig();
            PhpIniXmlWriter ow = new PhpIniXmlWriter(writer, options, writePhpNames);

            ow.StartSection("Zip");

            // local:

            // global:

            ow.WriteEnd();
        }
コード例 #3
0
ファイル: ZipConfiguration.cs プロジェクト: jiahao42/weverca
        /// <summary>
        /// Writes Zip legacy options and their values to XML text stream.
        /// Skips options whose values are the same as default values of Phalanger.
        /// </summary>
        /// <param name="writer">XML writer.</param>
        /// <param name="options">A hashtable containing PHP names and option values. Consumed options are removed from the table.</param>
        /// <param name="writePhpNames">Whether to add "phpName" attribute to option nodes.</param>
        public static void LegacyOptionsToXml(XmlTextWriter writer, Hashtable options, bool writePhpNames) // GENERICS:<string,string>
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            ZipLocalConfig  local  = new ZipLocalConfig();
            ZipGlobalConfig global = new ZipGlobalConfig();
            PhpIniXmlWriter ow     = new PhpIniXmlWriter(writer, options, writePhpNames);

            ow.StartSection("Zip");

            // local:

            // global:

            ow.WriteEnd();
        }