function execute() { $context = $this->getContext(); $controller = $context->getController(); $request = $context->getRequest(); $user = $context->getUser(); $acs_user_info_row = $user->getAttribute('acs_user_info_row'); // get $form = $request->ACSGetParameters(); // Validatorで出来ないエラーチェックを行う // if ($form['expire_date'] != '' && !ACSErrorCheck::is_valid_date($form['expire_date'])) { $this->setError($controller, $request, $user, 'expire_date', ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M001')); return $this->handleError(); } $form['user_community_id'] = $acs_user_info_row['user_community_id']; $ret = ACSSystemAnnounce::set_system_announce($form); $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList'); header("Location: {$system_announce_list_url}"); }