RequestAbstractClass.php 777 Bytes
<?php

/**
 * @class RequestAbstractClass
 * @brief Abstract class that's define a request
 * @details
 */
abstract class RequestAbstractClass
{
	protected $requestData = null;

	/*
	 * @brief Constructor
	*/
	function __construct($user = "", $userHost = "")
	{
		KernelConfigClass::setUserHost($userHost);
		KernelConfigClass::setUserName($user);
	}

	/*
	 * @brief Get request data
	*/
	public function getData()
	{
		return $this->requestData;
	}

	/*
	 * @brief Set request data
	*/
	public function setData($data)
	{
		$this->requestData = $data;
	}

	/*
	 * @brief Abstract method to init request
	*/
	abstract public function init();

	/*
	 * @brief Abstract method to run request
	*/
	abstract public function run();
}
?>