Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPostProcessingNodeClass.php 857 Bytes
22521f1c   Benjamin Renard   First commit
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
27
28
29
<?php

define ("REQUESTOUTPUTPOSTPROCESSING_NAME", "postProcess");



/**
 * @class RequestOutputPostProcessingNodeClass
 * @brief Definition of a request post processing node type for AMDA_Kernel
 * @details
*/
class RequestOutputPostProcessingNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPOSTPROCESSING_NAME);
	}

	public function addPostProcessing($type)
	{
		$this->getChildInstanceByName($type, true);
	}

	public function isPostProcessing($type)
	{
		if ($type == RequestOutputPostProcessingEnumClass::UNKNOWN)
			return false;
		return ($this->getChildInstanceByName($type) != NULL);
	}
966bd5f8   Benjamin Renard   Add request to ge...
30
31
32
33
34
35
36
	
	public function loadFromNode($xmlNode)
	{
		foreach ($this->getXmlNodeChildren($xmlNode) as $postprocessingXmlNode) {
			$this->addPostProcessing($this->getXmlNodeName($postprocessingXmlNode));
		}
	}
22521f1c   Benjamin Renard   First commit
37
38
39
}

?>