X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fvardemo.php;h=d24d04ecc1f95a194234c080b4990c1f5cab77db;hb=7f511cb14b813295a06c5f4d82b1e2d9a27fb571;hp=4f91deb18d0992ec198efd1f0da69e628f29b7df;hpb=5165658f984c1112f1f29e9663d5c334e71bdc98;p=plcapi.git diff --git a/demo/vardemo.php b/demo/vardemo.php index 4f91deb..d24d04e 100644 --- a/demo/vardemo.php +++ b/demo/vardemo.php @@ -2,11 +2,10 @@
" . htmlentities($w->serialize()) . ""; print "
Value of base64 string is: '" . $w->scalarval() . "'"; -$f->method(''); -$f->addParam(new PhpXmlRpc\Value("41", "int")); +$req->method(''); +$req->addParam(new PhpXmlRpc\Value("41", "int")); print "
" . htmlentities($op) . ""; print "
\n"; $t = time(); -$date = iso8601_encode($t); +$date = PhpXmlRpc\Helper\Date::iso8601_encode($t); print "Now is $t --> $date\n"; -print "Or in UTC, that is " . iso8601_encode($t, 1) . "\n"; -$tb = iso8601_decode($date); +print "Or in UTC, that is " . PhpXmlRpc\Helper\Date::iso8601_encode($t, 1) . "\n"; +$tb = PhpXmlRpc\Helper\Date::iso8601_decode($date); print "That is to say $date --> $tb\n"; -print "Which comes out at " . iso8601_encode($tb) . "\n"; -print "Which was the time in UTC at " . iso8601_decode($date, 1) . "\n"; +print "Which comes out at " . PhpXmlRpc\Helper\Date::iso8601_encode($tb) . "\n"; +print "Which was the time in UTC at " . PhpXmlRpc\Helper\Date::iso8601_decode($date, 1) . "\n"; print "\n"; + ?>