function execute() { $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'); $form = $request->ACSGetParameters(); $form['user_community_id'] = $acs_user_info_row['user_community_id']; if ($form['community_ml_address'] != '') { // コミュニティMLにプレフィックス・サフィックスを追加 $form['community_ml_address'] = ACS_COMMUNITY_ML_ADDR_PREFIX . $form['community_ml_address'] . ACS_COMMUNITY_ML_ADDR_SUFFIX; } // コミュニティ作成 $community_id = ACSCommunity::set_community($form); // コミュニティ情報 $community_row = ACSCommunity::get_community_row($community_id); // forward $done_obj = new ACSDone(); $done_obj->set_title(ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M001')); $done_obj->set_message(ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M002')); $done_obj->add_link($community_row['community_name'] . ' ' . ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M003'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']); $request->setAttribute('done_obj', $done_obj); $controller->forward('Common', 'Done'); }