예제 #1
0
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $community_id = $request->getParameter('community_id');
     $bbs_id = $request->getParameter('bbs_id');
     $bbs_res_id = $request->getParameter('bbs_res_id');
     // 入力データ
     $form = $request->ACSGetParameters();
     $form['user_community_id'] = $acs_user_info_row['user_community_id'];
     // bbs更新
     $ret = ACSBBS::update_bbs_res($form);
     $bbs_res_url = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_id . '&bbs_id=' . $bbs_id;
     header("Location: {$bbs_res_url}");
 }