You are here

private function WsDataNode::unwrap in Web Service Data 7

1 call to WsDataNode::unwrap()
WsDataNode::parse in modules/ws_services/includes/WsDataNode.inc

File

modules/ws_services/includes/WsDataNode.inc, line 28

Class

WsDataNode

Code

private function unwrap($data) {
  if (is_object($data)) {
    $data = get_object_vars($data);
  }
  if (is_array($data)) {
    foreach ($data as $k => $v) {
      $data[$k] = $this
        ->unwrap($v);
    }
  }
  return $data;
}