2 require_once("DataObjectBase.class.php");
3 require_once("xmlrpc.inc");
5 class Utility
Extends DataObjectBase
{
8 $this->_addFunc("currentdate", array( "name" => "FreeB.FBGlobal.CurrentDate",
9 "sig" => array(XMLRPCSTRING
,XMLRPCSTRING
),
14 function currentdate($m) {
18 $pkey = $this->_isodate(date("Y-m-d"));
20 // if we generated an error, create an error return response
22 return $this->_handleError($err);
25 // otherwise, we create the right response
26 // with the state name
27 return new xmlrpcresp(new xmlrpcval($pkey,XMLRPCDATETIME
));
32 //'FreeB.FBGlobal.CurrentDate' => \&FreeB_FBGlobal_CurrentDate,