public static function addSecondaryConfigTables($secondary_config_tables) { // if secondary_config_tables is not array, convert it to array if (!is_array(self::$secondary_config_tables) && self::$secondary_config_tables) { $configTable = self::$secondary_config_tables; self::$secondary_config_tables = array(); self::$secondary_config_tables[] = $configTable; } if (is_array($secondary_config_tables)) { foreach ($secondary_config_tables as $table) { self::$secondary_config_tables[] = $table; } } else { self::$secondary_config_tables[] = $secondary_config_tables; } }
function resetServiceConfig() { myServiceConfig::$secondary_config_tables = null; myServiceConfig::$path = null; myServiceConfig::$strict_mode = null; myServiceConfig::$default_config_table = null; }