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');
     // get
     $bbs_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D41'));
     $community_folder_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D31'));
     $self_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D00'));
     // カテゴリグループマスタ
     $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
     foreach ($category_group_master_row_array as $index => $category_group_master_row) {
         // カテゴリグループごとのカテゴリマスタ
         $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
     }
     // set
     $request->setAttribute('bbs_open_level_master_row_array', $bbs_open_level_master_row_array);
     $request->setAttribute('community_folder_open_level_master_row_array', $community_folder_open_level_master_row_array);
     $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
     $request->setAttribute('self_open_level_master_row_array', $self_open_level_master_row_array);
     return View::INPUT;
 }
 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();
     // カテゴリグループマスタ
     $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
     foreach ($category_group_master_row_array as $index => $category_group_master_row) {
         // カテゴリグループごとのカテゴリマスタ
         $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
     }
     $form_name = $request->ACSgetParameter('form_name');
     $prefix = $request->ACSgetParameter('prefix');
     // 検索時
     if ($form['search']) {
         // コミュニティ一覧を取得する
         $community_row_array = ACSCommunity::search_community_row_array($acs_user_info_row['user_community_id'], $form);
     } else {
         $community_row_array = ACSCommunity::get_community_row_array($acs_user_info_row['user_community_id']);
     }
     // set
     $request->setAttribute('community_row_array', $community_row_array);
     $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
     $request->setAttribute('form', $form);
     $request->setAttribute('form_name', $form_name);
     $request->setAttribute('prefix', $prefix);
     return View::SUCCESS;
 }
 function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     // 入力フォーム
     $form = $request->ACSgetParameters();
     // カテゴリグループマスタ
     $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
     foreach ($category_group_master_row_array as $index => $category_group_master_row) {
         // カテゴリグループごとのカテゴリマスタ
         $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
     }
     // カテゴリごとのコミュニティ数
     $category_code_community_num_array = ACSCommunity::get_category_code_community_num_array();
     // 検索時
     if ($form['search']) {
         // コミュニティ一覧を取得する
         $community_row_array = ACSCommunity::search_community_row_array($acs_user_info_row['user_community_id'], $form);
         // 概要
         foreach ($community_row_array as $index => $community_row) {
             $community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master', 'D07'));
         }
         // set
         $request->setAttribute('community_row_array', $community_row_array);
     }
     // set
     $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
     $request->setAttribute('category_code_community_num_array', $category_code_community_num_array);
     $request->setAttribute('form', $form);
     return View::INPUT;
 }
 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');
     // get
     $bbs_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D41'));
     $community_folder_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D31'));
     $self_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D40'), ACSMsg::get_mst('contents_type_master', 'D00'));
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSGetParameter('community_id');
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_profile_row($community_id);
     // サブコミュニティ情報の一覧
     $sub_community_row_array = ACSCommunity::get_sub_community_row_array($community_id);
     // 親コミュニティ情報の一覧
     $parent_community_row_array = ACSCommunity::get_parent_community_row_array($community_id);
     $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
     foreach ($category_group_master_row_array as $index => $category_group_master_row) {
         $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
     }
     // set
     $request->setAttribute('bbs_open_level_master_row_array', $bbs_open_level_master_row_array);
     $request->setAttribute('community_folder_open_level_master_row_array', $community_folder_open_level_master_row_array);
     $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
     $request->setAttribute('self_open_level_master_row_array', $self_open_level_master_row_array);
     $request->setAttribute('community_row', $community_row);
     $request->setAttribute('sub_community_row_array', $sub_community_row_array);
     $request->setAttribute('parent_community_row_array', $parent_community_row_array);
     return View::INPUT;
 }