|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.json.JsonModule
public class JsonModule
| Field Summary |
|---|
| Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
|---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
| Constructor Summary | |
|---|---|
JsonModule()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module. |
Value |
json_decode(Env env,
StringValue s,
boolean assoc)
Takes a JSON-encoded string and returns a PHP value. |
StringValue |
json_encode(Env env,
Value val)
Returns a JSON-encoded String. |
| Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
|---|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonModule()
| Method Detail |
|---|
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions in interface QuercusModulegetLoadedExtensions in class AbstractQuercusModule
public StringValue json_encode(Env env,
Value val)
env - val - to encode into json format
public Value json_decode(Env env,
StringValue s,
boolean assoc)
env - s - JSON-encoded string.assoc - determines whether a generic PHP object or PHP associative
array should be returned when decoding json objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||