Modified documentation to recommend no longer using the mode, prepend, or append...
[openemr.git] / library / freeb / Global.class.php
blob0338cb329ae56f24280267ba42c7253a0d5a8025
1 <?php
2 require_once("DataObjectBase.class.php");
3 require_once("xmlrpc.inc");
5 class ActionKeys Extends DataObjectBase {
7 function ActionKeys() {
8 $this->_addFunc("currentdate", array( "name" => "FreeB.FBGlobal.CurrentDate",
9 "sig" => array(XMLRPCSTRING,XMLRPCINT),
10 "doc" => ""));
14 function currentdate($m) {
16 $err="";
18 $procs = array(new xmlrpcval(144,"i4"),new xmlrpcval(233,"i4"));
20 // if we generated an error, create an error return response
21 if ($err) {
22 return $this->_handleError($err);
24 else {
25 // otherwise, we create the right response
26 // with the state name
27 return new xmlrpcresp(new xmlrpcval($procs,"array"));
32 //'FreeB.FBGlobal.CurrentDate' => \&FreeB_FBGlobal_CurrentDate,