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

class DoUpdateUser extends JsonResponse {

   function TemplateModule() {
   }
   
   function ProcessRequest() {

      $userObj = new ProcessUser();
      
      $urlRedirect = $userObj->Update();
      $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) {
   }
}
?>
