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

class DoAddGroup extends JsonResponse {

   function TemplateModule() {
   }
   
   function ProcessRequest() {    
      $groupObj = new ProcessGroup();
      $urlRedirect = $groupObj->Add();
      $sidebar = Dispatcher::Instance()->GetUrl('menu', 'menu', 'view', 'html').'&ascomponent=1';
         return array( 'exec' => 'GtfwAjax.replaceContentWithUrl("subcontent-element","'.$urlRedirect.'&ascomponent=1");GtfwAjax.replaceContentWithUrl("sidebarContents","'.$sidebar.'");') ;               
   }

   function ParseTemplate($data = NULL) {     
   }
}
?>
