RequestOutputDownloadPostProcessingNodeClass.php 802 Bytes
<?php

define ("REQUESTOUTPUTDOWNLOADPOSTPROCESSING_NAME", "postProcess");


abstract class DownloadPostProcessingEnum
{
	const UNKNOWN = "";
	const ZIP  = "zip";
	const TAR  = "tar";
	const GZIP = "gzip";
}

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

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

	public function isPostProcessing($type)
	{
		if ($type == DownloadPostProcessingEnum::UNKNOWN)
			return false;
		return ($this->getChildInstanceByName($type) != NULL);
	}
}

?>