send function sends the command to the oxD server.
  104         $jsondata = json_encode($this->
getData(), JSON_UNESCAPED_SLASHES);
   106         $lenght = strlen($jsondata);
   108             return array(
'status'=> 
false, 
'message'=> 
'Sorry .Problem with oxd.');
   110             $lenght = $lenght <= 999 ? 
"0" . $lenght : $lenght;
   114         if($this->response_json !=
'Can not connect to oxd server'){
   115             $this->response_json = str_replace(substr($this->response_json, 0, 4), 
"", $this->response_json);
   116             if ($this->response_json) {
   117                 $object = json_decode($this->response_json);
   118                 if ($object->status == 
'error') {
   119                     if($object->data->error == 
"invalid_op_host"){
   120                         return array(
'status'=> 
false, 
'message'=> $object->data->error);
   121                     }elseif($object->data->error == 
"internal_error"){
   122                         return array(
'status'=> 
false, 
'message'=> $object->data->error , 
'error_message'=>$object->data->error_description);
   124                         return array(
'status'=> 
false, 
'message'=> $object->data->error . 
' : ' . $object->data->error_description);
   126                 } elseif ($object->status == 
'ok') {
   127                     $this->response_object = json_decode($this->response_json);
   128                     return array(
'status'=> 
true);
   132             return array(
'status'=> 
false, 
'message'=> 
'Can not connect to the oxd server. Please check the oxd-config.json file to make sure you have entered the correct port and the oxd server is operational.');
 
oxd_socket_request($data, $char_count=8192)
Definition: Client_OXD_RP.php:80
 
getData()
Definition: Client_OXD_RP.php:154