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

class DoUpdatePeriode extends JsonResponse {

	function TemplateModule() {
	}
	
	function ProcessRequest() {
		$prdObj = new ProcessPeriode();
		if(isset($_GET['confirm'])){
         $urlRedirect = $prdObj->UpdateConfirm();
      }else{
         $urlRedirect = $prdObj->Update();
		}
		
		return array('exec'=>'GtfwAjax.replaceContentWithUrl("subcontent-element","'.$urlRedirect.'&ascomponent=1")');
	 }
	function ParseTemplate($data = NULL) {	
	}
}
?>
