/** * 初期画面 * GETメソッドの場合、呼ばれる */ 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'); $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row); // コミュニティ情報の取得 $target_community_id = $request->getParameter('community_id'); $target_community_row = ACSCommunity::get_community_row($target_community_id); $request->setAttributeByRef('target_community_row', $target_community_row); // コミュニティ人数の取得 $request->setAttribute('member_count', ACSCommunity::get_community_member_count($target_community_id)); // スケジュールインスタンス配列の取得 $schedule_array =& ACSSchedule::get_community_schedule_instance_list($target_community_id); $request->setAttributeByRef('schedules', $schedule_array); // スケジュール人数情報配列の取得 $schedule_persons_array =& ACSSchedule::get_total_person_count($target_community_id); $request->setAttributeByRef('schedule_persons', $schedule_persons_array); return View::SUCCESS; }