<?php
require_once GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/agama/response/ProcessAgama.proc.class.php';

class DoAddAgama extends jsonResponse {

	function TemplateModule() {
	}
	
	function ProcessRequest() {
		$agamaObj = new ProcessAgama();
		$urlRedirect = $agamaObj->Add();
		
		return array('exec'=>'GtfwAjax.replaceContentWithUrl("subcontent-element","'.$urlRedirect.'&ascomponent=1")');
	 }
	function ParseTemplate($data = NULL) {	
	}
}
?>
