diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-14 09:07:19 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-14 09:07:19 +0200 |
commit | 792497f731c5c3a93a442bd487bd7ae4e0ffb2bf (patch) | |
tree | 4145bb0adaa205a01eb34b50c8ff690729c5d02b /include/call.h | |
parent | 7df281b04d7286cd1cf7cad55848b6bf4a250c24 (diff) | |
parent | 06ca40ff782231f58d629b09004700714d96fa0c (diff) |
Merge pull request #82 from valmat/ini
Php::Ini_get()
Diffstat (limited to 'include/call.h')
-rw-r--r-- | include/call.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/call.h b/include/call.h index 2fcc9b0..f881782 100644 --- a/include/call.h +++ b/include/call.h @@ -57,7 +57,16 @@ inline Value echo(const std::string &input) { out << input; return nullptr; } inline Value empty(const Value &value) { return value.isNull() || !value.boolValue(); } inline Value empty(const HashMember<std::string> &member) { return !member.exists() || empty(member.value()); } inline Value empty(const HashMember<int> &member) { return !member.exists() || empty(member.value()); } -inline Value ini_get(const Value &value) { return call("ini_get", value); } + +inline IniValue ini_get(const char* name) +{ + return IniValue(name, false); +} +inline IniValue ini_get_orig(const char* name) +{ + return IniValue(name, true); +} + inline Value is_array(const Value &value) { return value.isArray(); } inline Value strlen(const Value &value) { return call("strlen", value); } inline void unset(const HashMember<std::string> &member) { member.unset(); } |