summaryrefslogtreecommitdiff
path: root/tests/cpp/include
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-13 21:20:52 +0600
committervalmat <ufabiz@gmail.com>2014-04-13 21:20:52 +0600
commit9b2ac923e4bf98ca76441362b1d15e58de4297c8 (patch)
treebab2b2e67b526550f9bfced48395f260ae36ad55 /tests/cpp/include
parent7df281b04d7286cd1cf7cad55848b6bf4a250c24 (diff)
Class IniValue designed for extracting values from ini entries
Diffstat (limited to 'tests/cpp/include')
-rw-r--r--tests/cpp/include/ini_entries/001.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cpp/include/ini_entries/001.h b/tests/cpp/include/ini_entries/001.h
index 649b0bd..440944c 100644
--- a/tests/cpp/include/ini_entries/001.h
+++ b/tests/cpp/include/ini_entries/001.h
@@ -13,10 +13,26 @@ namespace TestIniEntries {
void iniTest1(Php::Parameters &params)
{
+ /*
+ .add(Php::Ini(, "valIni1"))
+ .add(Php::Ini("ini2", "valIni2", "OrigValIni2"))
+ .add(Php::Ini("ini3", "valIni3", "OrigValIni3", Php::Ini::System))
+ .add(Php::Ini("ini4", true, false, Php::Ini::Place::User))
+ .add(Php::Ini("ini5", false));
+
+ Ini::get("ini1")
+ */
+
+ Php::out << "Ini::get(ini1) = {{" << Php::Ini::get("ini1") << " | " << Php::Ini::get_orig("ini1") << "}}" << std::endl;
+ Php::out << "Ini::get(ini2) = {{" << Php::Ini::get("ini2") << " | " << Php::Ini::get_orig("ini2") << "}}" << std::endl;
+ Php::out << "Ini::get(ini3) = {{" << Php::Ini::get("ini3") << " | " << Php::Ini::get_orig("ini3") << "}}" << std::endl;
+ Php::out << "Ini::get(ini4) = {{" << Php::Ini::get("ini4") << " | " << Php::Ini::get_orig("ini4") << "}}" << std::endl;
+ /*
Php::out << "extension_for_tests.some_string ={{" << Php::ini_get("extension_for_tests.some_string") << "}}" << std::endl;
Php::out << "extension_for_tests.some_string2 ={{" << Php::ini_get("extension_for_tests.some_string2") << "}}" << std::endl;
Php::out << "extension_for_tests.some_string3 ={{" << Php::ini_get("extension_for_tests.some_string3") << "}}" << std::endl;
Php::out << "extension_for_tests.some_string3 ={{" << Php::ini_get("extension_for_tests.some_bool") << "}}" << std::endl;
+ */