Blame view

src/InputOutput/IHMImpl/Process/IHMInputOutputGetProcessRequestClass.php 673 Bytes
84cb4dbb   Benjamin Renard   Give the possibil...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/**
 * @class IHMInputOutputGetProcessRequestClass
 * @brief Class that's implement an InputOutputInterface used to get the request associated to a process
 * @details
 */
class IHMInputOutputGetProcessRequestClass extends IHMInputOutputGetInfoProcessClass
{
	/*
	 * @brief  translate output data from AMDA_Integration module to IHM client for a get info process request
	*/
	public function getOutput($data)
	{
		if (!$data->getSuccess())
		{
			return array(
				'success' => false,
				'message' => $data->getLastErrorMessage());
		}

                return $this->jobsManager->getRequestObjectFile($this->paramsData->getId());
	}
}

?>