/**
  *
  * @param tx_caretaker_AbstractNode $node
  * @return array
  */
 function getNodeData($node)
 {
     $data = array();
     // node data
     $data['uid'] = $node->getUid();
     $data['node_id'] = $node->getCaretakerNodeId();
     $data['node_type'] = $node->getType();
     $data['type'] = $node->getTypeDescription();
     $data['configuration'] = $node->getConfigurationInfo();
     $data['title'] = $node->getTitle();
     $data['description'] = $node->getDescription();
     // add state Infos
     $result = $node->getTestResult();
     $data['state'] = $result->getState();
     $data['state_info'] = $result->getStateInfo();
     $data['state_show'] = $result->getLocallizedStateInfo();
     $data['state_msg'] = $result->getLocallizedInfotext();
     $data['state_tstamp'] = $result->getTimestamp();
     if ($result instanceof tx_caretaker_TestResult) {
         $data['state_value'] = $result->getValue();
     }
     // instance data
     if (is_a($node, 'tx_caretaker_TestNode') || is_a($node, 'tx_caretaker_TestgroupNode')) {
         $data['instance'] = $node->getInstance()->getTitle();
     }
     $data['link_parameters'] = '&tx_caretaker_pi_singleview[id]=' . $node->getCaretakerNodeId();
     return $data;
 }