added some more messages to the client/server comms
[ga4php.git] / gaas / lib / gaasClientMessages.php
index 69589fc..d110ba2 100644 (file)
@@ -37,6 +37,10 @@ function gaasInitServer_clientsend($params)
 }
 
 // pretty simple, it either works or doesnt, we just pass on the result
+// im leaving this function here as an example of how you deal
+// with data coming back from the server but prior to returning
+// to the client. if it just returns the data back to the client
+// you doing have to define a recving function
 function gaasInitServer_clientrecv($params)
 {
        return $params;
@@ -51,31 +55,22 @@ function gaasSetADLogin_clientsend($params)
        return $msg;
 }
 
-function gaasSetADLogin_clientrecv($params)
-{
-       return $params;
-}
-
 function gaasSetClientGroup_clientsend($params)
 {
        $msg["clientgroup"] = $params[0];
        return $msg;
 }
 
-function gaasSetClientGroup_clientrecv($params)
-{
-       return $params;
-}
-
 function gaasSetAdminGroup_clientsend($params)
 {
        $msg["admingroup"] = $params[0];
        return $msg;
 }
 
-function gaasSetAdminGroup_clientrecv($params)
+function gaasProvisionUser_clientsend($params)
 {
-       return $params;
+       $msg["username"] = $params[0];
+       return $msg;
 }
 
 ?>
\ No newline at end of file