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
     $contents_key = $request->getAttribute('contents_key');
     $contents_type_code = $request->getAttribute('contents_type_code');
     $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
     $friends_group_row_array = $request->getAttribute('friends_group_row_array');
     // コンテンツ種別マスタ
     $contents_type_master_array = ACSDB::get_master_array('contents_type');
     $contents_type_name = $contents_type_master_array[$contents_type_code];
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('SetOpenLevelForProfileView.tpl.php');
     // set
     $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
     $this->setAttribute('friends_group_row_array', $friends_group_row_array);
     $this->setAttribute('contents_key', $contents_key);
     $this->setAttribute('contents_type_name', $contents_type_name);
     return parent::execute();
 }
 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
     $category_group_master_row_array = $request->getAttribute('category_group_master_row_array');
     $community_row_array = $request->getAttribute('community_row_array');
     $form = $request->getAttribute('form');
     // カテゴリマスタ一覧
     $category_master_row_array = array();
     array_push($category_master_row_array, array('category_code' => 0, 'category_name' => ACSMsg::get_mst('file_category_master', 'D0000')));
     foreach ($category_group_master_row_array as $category_group_master_row) {
         foreach ($category_group_master_row['category_master_row_array'] as $category_master_row) {
             array_push($category_master_row_array, $category_master_row);
         }
     }
     // コミュニティ一覧
     foreach ($community_row_array as $index => $community_row) {
         $community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D03'), 'COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $community_row_array, $display_count);
     // URL
     $action_url = $this->getControllerPath();
     // set
     $this->setAttribute('category_master_row_array', $category_master_row_array);
     $this->setAttribute('form', $form);
     $this->setAttribute('community_row_array', $community_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('module', 'Community');
     $this->setAttribute('action', 'SelectTrustedCommunity');
     $this->setAttribute('form_name', $request->getAttribute('form_name'));
     $this->setAttribute('prefix', $request->getAttribute('prefix'));
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('SelectTrustedCommunity.tpl.php');
     return parent::execute();
 }