Merge branch '138-toggle-free-look-with-hotkey' into 'main/atys-live'
[ryzomcore.git] / web / public_php / admin / nel / admin_modules_itf.php
blob6d8c1d4e6a8dd30305b88471eeb22a9deb260633
1 <?php
2 /////////////////////////////////////////////////////////////////
3 // WARNING : this is a generated file, don't change it !
4 /////////////////////////////////////////////////////////////////
6 require_once('nel_message.php');
8 class CAdminServiceWeb extends CCallbackClient
11 function globalCmd($command)
13 $msg = new CMessage;
14 $msg->setName("GCMD");
17 $msg->serialString($command);
19 return parent::sendMessage($msg);
24 function controlCmd($serviceAlias, $command)
26 $msg = new CMessage;
27 $msg->setName("CCMD");
30 $msg->serialString($serviceAlias);
31 $msg->serialString($command);
33 return parent::sendMessage($msg);
38 function serviceCmd($serviceAlias, $command)
40 $msg = new CMessage;
41 $msg->setName("SCMD");
44 $msg->serialString($serviceAlias);
45 $msg->serialString($command);
47 return parent::sendMessage($msg);
52 function getShardOrders()
54 $msg = new CMessage;
55 $msg->setName("GSO");
59 $ret = "";
60 $ret = parent::sendMessage($msg);
61 if ($ret == false)
63 // error during send
64 $this->invokeError("getShardOrders", "Error in 'sendMessage'");
65 return false;
68 $retMsg = parent::waitMessage();
69 if ($ret == false)
71 // error during send
72 $this->invokeError("getShardOrders", "Error in 'waitMessage'");
73 return false;
75 if (!($retMsg->MsgName === "R_GSO"))
77 // error during send
78 $this->invokeError("getShardOrders", "Invalid response, awaited 'R_GSO', received '".$retMsg->MsgName."'");
79 return false;
82 // serial the return value
83 $nbElem = 0;
84 $retMsg->serialUInt32($nbElem);
85 $retValue = array();
86 for ($i=0; $i<$nbElem;$i++)
88 $retMsg->serialString($item);
89 $retValue[] = $item;
93 // return the return value
94 return $retValue;
99 function getStates()
101 $msg = new CMessage;
102 $msg->setName("GS");
106 $ret = "";
107 $ret = parent::sendMessage($msg);
108 if ($ret == false)
110 // error during send
111 $this->invokeError("getStates", "Error in 'sendMessage'");
112 return false;
115 $retMsg = parent::waitMessage();
116 if ($ret == false)
118 // error during send
119 $this->invokeError("getStates", "Error in 'waitMessage'");
120 return false;
122 if (!($retMsg->MsgName === "R_GS"))
124 // error during send
125 $this->invokeError("getStates", "Invalid response, awaited 'R_GS', received '".$retMsg->MsgName."'");
126 return false;
129 // serial the return value
130 $nbElem = 0;
131 $retMsg->serialUInt32($nbElem);
132 $retValue = array();
133 for ($i=0; $i<$nbElem;$i++)
135 $retMsg->serialString($item);
136 $retValue[] = $item;
140 // return the return value
141 return $retValue;
146 function getHighRezGraph($varAddr, $startDate, $endDate, $milliStep)
148 $msg = new CMessage;
149 $msg->setName("GHRG");
152 $msg->serialString($varAddr);
153 $msg->serialUint32($startDate);
154 $msg->serialUint32($endDate);
155 $msg->serialUint32($milliStep);
157 $ret = "";
158 $ret = parent::sendMessage($msg);
159 if ($ret == false)
161 // error during send
162 $this->invokeError("getHighRezGraph", "Error in 'sendMessage'");
163 return false;
166 $retMsg = parent::waitMessage();
167 if ($ret == false)
169 // error during send
170 $this->invokeError("getHighRezGraph", "Error in 'waitMessage'");
171 return false;
173 if (!($retMsg->MsgName === "R_GHRG"))
175 // error during send
176 $this->invokeError("getHighRezGraph", "Invalid response, awaited 'R_GHRG', received '".$retMsg->MsgName."'");
177 return false;
180 // serial the return value
181 $nbElem = 0;
182 $retMsg->serialUInt32($nbElem);
183 $retValue = array();
184 for ($i=0; $i<$nbElem;$i++)
186 $retMsg->serialString($item);
187 $retValue[] = $item;
191 // return the return value
192 return $retValue;
198 function waitCallback()
200 $message = parent::waitMessage();
202 if ($message == false)
203 return false;
205 switch($message->MsgName)
207 case "CMDR":
208 $this->commandResult_skel($message);
209 break;
210 default:
211 return false;
214 return true;
218 function commandResult_skel(&$message)
220 $message->serialString($serviceAlias);
221 $message->serialString($result);
223 $this->commandResult($serviceAlias, $result);
227 /////////////////////////////////////////////////////////////////
228 // Copy paste this part of code in your derived class
229 // and implement code to ract to incoming message
230 /////////////////////////////////////////////////////////////////
232 function commandResult($serviceAlias, $result)