diff options
author | Zach Copley <zach@controlyourself.ca> | 2008-12-07 19:58:16 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2008-12-07 19:58:16 -0500 |
commit | e35f40528b8d3ed4c2239a558e9f6f42b8f19271 (patch) | |
tree | 42bc50bd030f19902bc87c328e2c9400d4664c22 /extlib/facebook/jsonwrapper/jsonwrapper_inner.php | |
parent | ff766572e7f4940d66137f7dd0d8f09df1fbaf1c (diff) |
trac750 added Facebook client libs for PHP to extlib dir
darcs-hash:20081208005816-7b5ce-b7ec90e310ddc609fe88d54cfac5ec7bc67da6ca.gz
Diffstat (limited to 'extlib/facebook/jsonwrapper/jsonwrapper_inner.php')
-rw-r--r-- | extlib/facebook/jsonwrapper/jsonwrapper_inner.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extlib/facebook/jsonwrapper/jsonwrapper_inner.php b/extlib/facebook/jsonwrapper/jsonwrapper_inner.php new file mode 100644 index 000000000..36a3f2863 --- /dev/null +++ b/extlib/facebook/jsonwrapper/jsonwrapper_inner.php @@ -0,0 +1,23 @@ +<?php + +require_once 'JSON/JSON.php'; + +function json_encode($arg) +{ + global $services_json; + if (!isset($services_json)) { + $services_json = new Services_JSON(); + } + return $services_json->encode($arg); +} + +function json_decode($arg) +{ + global $services_json; + if (!isset($services_json)) { + $services_json = new Services_JSON(); + } + return $services_json->decode($arg); +} + +?> |