Пример #1
0
        /// <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)
        {
            PDOSQLServerLocalConfig  local    = (PDOSQLServerLocalConfig)config.GetLibraryConfig(PDOSQLServerLibraryDescriptor.Singleton);
            PDOSQLServerLocalConfig  @default = DefaultLocal;
            PDOSQLServerGlobalConfig global   = Global;

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

            //    // global:

            //}

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

            PDOSQLServerLocalConfig local = new PDOSQLServerLocalConfig();
            PDOSQLServerGlobalConfig global = new PDOSQLServerGlobalConfig();
            PhpIniXmlWriter ow = new PhpIniXmlWriter(wrServerr, options, wrServerPhpNames);

            ow.StartSection("pdo");

            // local:

            // global:

            ow.WriteEnd();
        }
Пример #3
0
        /// <summary>
        /// WrServers PDO legacy options and their values to XML text stream.
        /// Skips options whose values are the same as default values of Phalanger.
        /// </summary>
        /// <param name="wrServerr">XML wrServerr.</param>
        /// <param name="options">A hashtable containing PHP names and option values. Consumed options are removed from the table.</param>
        /// <param name="wrServerPhpNames">Whether to add "phpName" attribute to option nodes.</param>
        public static void LegacyOptionsToXml(XmlTextWriter wrServerr, Hashtable options, bool wrServerPhpNames) // GENERICS:<string,string>
        {
            if (wrServerr == null)
            {
                throw new ArgumentNullException("wrServerr");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            PDOSQLServerLocalConfig  local  = new PDOSQLServerLocalConfig();
            PDOSQLServerGlobalConfig global = new PDOSQLServerGlobalConfig();
            PhpIniXmlWriter          ow     = new PhpIniXmlWriter(wrServerr, options, wrServerPhpNames);

            ow.StartSection("pdo");

            // local:

            // global:

            ow.WriteEnd();
        }