TestInputOutputClass.php
733 Bytes
<?php
/**
* @class TestInputOutputClass
* @brief Class that's implement an InputOutputInterface for test client. This class inherits from IHMInputOutputClass.
* @details
*/
class TestInputOutputClass extends IHMInputOutputClass
{
/*
* @brief translate input data from test to AMDA_Integration module
*/
public function getInputData($input,$function)
{
//just decode the input
$ihmInput = json_decode($input);
//and call the IHMInputOutputClass method
return parent::getInputData($ihmInput,$function);
}
public function getOutput($data)
{
//call the IHMInputOutputClass method
$output = parent::getOutput($data);
//and encode the output
return json_encode($output);
}
}
?>