function getDefaultView() { $context = $this->getContext(); $controller = $context->getController(); $request = $context->getRequest(); $user = $context->getUser(); if (!$this->get_execute_privilege()) { $controller->forward(SECURE_MODULE, SECURE_ACTION); return; } $acs_user_info_row = $user->getAttribute('acs_user_info_row'); // 対象となるコミュニティIDを取得 $community_id = $request->ACSgetParameter('community_id'); // 削除するコミュニティリンクのコミュニティID $delete_community_id = $request->ACSgetParameter('delete_community_id'); // mode $mode = $request->ACSgetParameter('mode'); // コミュニティ情報 $community_row = ACSCommunity::get_community_row($community_id); // 削除するコミュニティ情報 if ($mode == 'parent') { $delete_community_row = ACSCommunity::get_parent_community_row($delete_community_id, $community_id); } elseif ($mode == 'sub') { $delete_community_row = ACSCommunity::get_sub_community_row($community_id, $delete_community_id); } // set $request->setAttribute('community_row', $community_row); $request->setAttribute('delete_community_row', $delete_community_row); $request->setAttribute('mode', $mode); return View::INPUT; }