当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseView::execute方法代码示例

本文整理汇总了PHP中BaseView::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseView::execute方法的具体用法?PHP BaseView::execute怎么用?PHP BaseView::execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseView的用法示例。


在下文中一共展示了BaseView::execute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: execute

 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $new_open_diary_row_array = $request->getAttribute('new_open_diary_row_array');
     // 加工
     foreach ($new_open_diary_row_array as $index => $new_open_diary_row) {
         // 投稿者のトップページURL
         $new_open_diary_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $new_open_diary_row['user_community_id'];
         // 投稿者の写真
         $new_open_diary_row_array[$index]['image_url'] = ACSUser::get_image_url($new_open_diary_row['user_community_id'], 'thumb');
         // ダイアリーコメントURL
         $new_open_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_open_diary_row['user_community_id'] . '&diary_id=' . $new_open_diary_row['diary_id'];
         $new_open_diary_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_open_diary_row['post_date']);
     }
     // set
     $this->setAttribute('new_open_diary_row_array', $new_open_diary_row_array);
     // テンプレートをセットする
     $this->setTemplate('NewOpenDiary.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("NewOpenDiary", $this->render());
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:26,代码来源:NewOpenDiaryInputView.class.php

示例2: execute

 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $new_bbs_for_press_release_row_array = $request->getAttribute('new_bbs_for_press_release_row_array');
     // 加工
     foreach ($new_bbs_for_press_release_row_array as $index => $new_bbs_row) {
         $new_bbs_for_press_release_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $new_bbs_row['community_id'];
         $new_bbs_for_press_release_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $new_bbs_row['community_id'] . '&bbs_id=' . $new_bbs_row['bbs_id'];
         if ($new_bbs_row['file_id']) {
             $new_bbs_for_press_release_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], 'thumb');
             // サムネイル
             $new_bbs_for_press_release_row_array[$index]['file_url_alink'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], '');
             // ポップアップ用
         }
         $new_bbs_for_press_release_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_bbs_row['post_date'], 1, 0);
     }
     // set
     $this->setAttribute('new_bbs_for_press_release_row_array', $new_bbs_for_press_release_row_array);
     // テンプレートをセットする
     $this->setTemplate('NewPressRelease.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("NewPressRelease", $this->render());
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:NewPressReleaseInputView.class.php

示例3: execute

 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     //get
     // 対象となるUserIDを取得
     $user_id = $request->getParameter('id');
     //ユーザ入力情報
     $form = $user->getAttribute('new_form_obj');
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // form action
     $action_url = $this->getControllerPath('User', 'MessagePre') . '&id=' . $user_id . '&move_id=2';
     $back_url = $this->getControllerPath('User', 'Message') . '&id=' . $user_id . '&move_id=3';
     // MessageトップページのURL
     $message_top_page_url = $this->getControllerPath('User', 'Message') . '&id=' . $user_id;
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('acs_user_info_row', $acs_user_info_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('back_url', $back_url);
     $this->setAttribute('message_top_page_url', $message_top_page_url);
     $this->setAttribute('form', $form);
     // エラーメッセージ
     $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
     // テンプレート
     $this->setTemplate('MessagePre.tpl.php');
     $this->setScreenId("0001");
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:32,代码来源:MessagePreSuccessView.class.php

示例4: 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');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $target_community_row = ACSCommunity::get_community_row($target_community_id);
     $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
     // action
     $action_url = $this->getControllerPath('Community', 'UploadFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
     // フォルダURL 通常表示
     $folder_url = $this->getControllerPath('Community', 'Folder') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
     // フォルダURL グループ表示
     $folder_group_mode_url = $this->getControllerPath('Community', 'Folder') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&mode=group';
     // set
     $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
     $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
     $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
     $this->setAttribute('target_community_row', $target_community_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('folder_url', $folder_url);
     $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
     $this->setScreenId("0001");
     $this->setTemplate('UploadFile.tpl.php');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:29,代码来源:UploadFileInputView.class.php

示例5: 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');
     // ユーザ一覧URL
     $user_list_url = $this->getControllerPath('System', 'UserList');
     // ログ管理URL
     $log_url = $this->getControllerPath('System', 'Log');
     // システムアナウンス(システムからのお知らせ)一覧URL
     $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
     // システム設定URL
     $edit_system_config_url = $this->getControllerPath('System', 'EditSystemConfig');
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('Index.tpl.php');
     // set
     $this->setAttribute('user_list_url', $user_list_url);
     $this->setAttribute('log_url', $log_url);
     $this->setAttribute('create_system_announce_url', $create_system_announce_url);
     $this->setAttribute('system_announce_list_url', $system_announce_list_url);
     $this->setAttribute('edit_system_config_url', $edit_system_config_url);
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:26,代码来源:IndexSuccessView.class.php

示例6: execute

 function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
     // 加工
     foreach ($commented_diary_row_array as $index => $commented_diary_row) {
         $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
         $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
     }
     // 新着日記一覧URL
     $diary_comment_history_url = $this->getControllerPath(DEFAULT_MODULE, 'DiaryCommentHistory') . '&id=' . $target_user_info_row['user_community_id'];
     // 表示件数制御 //
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
     $commented_diary_row_array = array_slice($commented_diary_row_array, 0, $display_count);
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
     $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
     $this->setAttribute('get_days', $request->getAttribute('get_days'));
     // テンプレート
     $this->setTemplate('DiaryCommentHistory.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("DiaryCommentHistory", $this->render());
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:DiaryCommentHistoryInputView.class.php

示例7: 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
     $waiting_type_name = $request->getAttribute('waiting_type_name');
     $waiting_row_array = $request->getAttribute('waiting_row_array');
     // 加工
     foreach ($waiting_row_array as $index => $waiting_row) {
         $waiting_row_array[$index]['entry_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
         $waiting_row_array[$index]['complete_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
         if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D10')) {
             $waiting_row_array[$index]['image_url'] = ACSUser::get_image_url($waiting_row['waiting_community_id'], 'thumb');
             $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['waiting_community_id'];
         } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D30')) {
             $waiting_row_array[$index]['image_url'] = ACSCommunity::get_image_url($waiting_row['waiting_community_id'], 'thumb');
             $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $waiting_row['waiting_community_id'];
             $waiting_row_array[$index]['entry_user_info_row']['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['entry_user_info_row']['user_community_id'];
             // コミュニティプロフィール
             $waiting_row_array[$index]['waiting_community_row'] = ACSCommunity::get_community_profile_row($waiting_row['waiting_community_id']);
         }
         $waiting_row_array[$index]['action_url'] = $this->getControllerPath('User', 'WaitingList') . '&id=' . $acs_user_info_row['user_community_id'] . '&waiting_id=' . $waiting_row['waiting_id'];
     }
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('WaitingList.tpl.php');
     // set
     $this->setAttribute('waiting_type_name', $waiting_type_name);
     $this->setAttribute('waiting_row_array', $waiting_row_array);
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:34,代码来源:WaitingListInputView.class.php

示例8: 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
     $community_row = $request->getAttribute('community_row');
     $is_admission_required = $request->getAttribute('is_admission_required');
     // URL
     $action_url = $this->getControllerPath('Community', 'JoinCommunity') . '&community_id=' . $community_row['community_id'];
     $back_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // コミュニティトップページのURL
     $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // テンプレート
     if ($is_admission_required) {
         // 承認が必要
         $this->setScreenId("0001");
         $this->setTemplate('JoinCommunity_admission.tpl.php');
     } else {
         // 自由参加
         $this->setScreenId("0001");
         $this->setTemplate('JoinCommunity.tpl.php');
     }
     // set
     $this->setAttribute('community_row', $community_row);
     $this->setAttribute('is_admission_required', $is_admission_required);
     $this->setAttribute('back_url', $back_url);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:33,代码来源:JoinCommunityInputView.class.php

示例9: 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');
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $login_info_row_array = $request->getAttribute('login_info_row_array');
     $top_page_url = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $target_user_info_row['community_id'];
     // 加工
     foreach ($login_info_row_array as $index => $login_info_row) {
         $login_info_row_array[$index]['login_date'] = ACSLib::convert_pg_date_to_str($login_info_row['login_date']);
         $login_info_row_array[$index]['logout_date'] = ACSLib::convert_pg_date_to_str($login_info_row['logout_date']);
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $login_info_row_array, $display_count);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('LoginInfo.tpl.php');
     // set
     //$this->setAttribute('form', $form);
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('login_info_row_array', $login_info_row_array);
     $this->setAttribute('top_page_url', $top_page_url);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('module', 'System');
     $this->setAttribute('action', 'LoginInfo');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:31,代码来源:LoginInfoSuccessView.class.php

示例10: 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');
     $footprint_info_row_array = $request->getAttribute('footprint_info_row_array');
     $user_community_id = $request->getAttribute('user_community_id');
     //top
     $top_page_url = $this->getControllerPath('User', 'Index') . '&id=' . $user_community_id;
     foreach ($footprint_info_row_array as $index => $footprint_row) {
         // 足跡日付
         $footprint_info_row_array[$index]['post_date_disp'] = ACSLib::convert_pg_date_to_str($footprint_row['post_date']);
         // 足跡をつけたユーザのトップページURL
         $footprint_info_row_array[$index]['visitor_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $footprint_row['visitor_community_id'];
         // コンテンツ日付
         $footprint_info_row_array[$index]['contents_date_disp'] = "(" . ACSLib::convert_pg_date_to_str($footprint_row['contents_date'], 0, 0) . ")";
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'FOOTPRINT_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $footprint_info_row_array, $display_count);
     // set
     $this->setAttribute('acs_user_info_row', $acs_user_info_row);
     $this->setAttribute('top_page_url', $top_page_url);
     $this->setAttribute('footprint_info_row_array', $footprint_info_row_array);
     $this->setAttribute('paging_info', $paging_info);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('FootprintCheck.tpl.php');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:32,代码来源:FootprintCheckSuccessView.class.php

示例11: 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');
     $system_announce_row_array = $request->getAttribute('system_announce_row_array');
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $system_announce_row_array, $display_count);
     foreach ($system_announce_row_array as $index => $system_announce_row) {
         $system_announce_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $system_announce_row['community_id'];
         $system_announce_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['post_date'], true, true);
         $system_announce_row_array[$index]['expire_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['expire_date'], false, false, false);
         $system_announce_row_array[$index]['is_expire'] = ACSLib::get_boolean($system_announce_row['is_expire']);
         $system_announce_row_array[$index]['system_announce_delete_flag'] = ACSLib::get_boolean($system_announce_row['system_announce_delete_flag']);
         $system_announce_row_array[$index]['delete_system_announce_url'] = $this->getControllerPath('System', 'DeleteSystemAnnounce') . '&system_announce_id=' . $system_announce_row['system_announce_id'];
     }
     // システムアナウンス(システムからのお知らせ)作成URL
     $create_system_announce_url = $this->getControllerPath('System', 'CreateSystemAnnounce');
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('SystemAnnounceList.tpl.php');
     // set
     $this->setAttribute('system_announce_row_array', $system_announce_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('create_system_announce_url', $create_system_announce_url);
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:SystemAnnounceListSuccessView.class.php

示例12: 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');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $file_id = $request->getParameter('file_id');
     // コミュニティ情報 //
     $target_community_row = ACSCommunity::get_community_row($target_community_id);
     $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
     $action_url = $this->getControllerPath('Community', 'UpdateFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id;
     // ファイル詳細情報URL
     $file_detail_url = $this->getControllerPath('Community', 'FileDetail') . '&community_id=' . $target_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_community_folder_id;
     // set
     $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
     $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
     $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
     $this->setAttribute('target_community_row', $target_community_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('file_detail_url', $file_detail_url);
     $this->setScreenId("0001");
     $this->setTemplate('UpdateFile.tpl.php');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:27,代码来源:UpdateFileInputView.class.php

示例13: execute

 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $target_community_row = $request->getAttribute('target_community_row');
     $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
     // URL に付加する target_community
     $target_community_info = '&community_id=' . $target_community_row['community_id'];
     // コミュニティのURL
     $community_top_page_url = $this->getControllerPath('Community', 'Index');
     $community_top_page_url .= $target_community_info;
     // キャンセルURL
     $cancel_action_url = $community_top_page_url;
     // 削除アクションURL
     $delete_action_url = $this->getControllerPath('Community', 'DeleteCommunity');
     $delete_action_url .= $target_community_info;
     // コミュニティの概要
     $delete_community_row = array();
     $delete_community_row['community_name'] = $target_community_row['community_name'];
     $delete_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . $target_community_info;
     $delete_community_row['image_url'] = ACSCommunity::get_image_url($target_community_row['community_id']);
     $delete_community_row['community_profile'] = $target_community_row['community_profile']['contents_value'];
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     $this->setAttribute('target_community_name', $target_community_row['community_name']);
     $this->setAttribute('delete_community_row', $delete_community_row);
     // form のアクション先 URL
     $this->setAttribute('cancel_action_url', $cancel_action_url);
     $this->setAttribute('delete_action_url', $delete_action_url);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DeleteCommunity_confirm.tpl.php');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:DeleteCommunitySuccessView.class.php

示例14: execute

 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     // get
     $ranking_community_row_array = $request->getAttribute('ranking_community_row_array');
     // 加工
     $rank = 1;
     foreach ($ranking_community_row_array as $index => $ranking_community_row) {
         // トップページURL
         $ranking_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $ranking_community_row['community_id'];
         // 写真
         $ranking_community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($ranking_community_row['community_id'], 'thumb');
         // プロフィール
         $ranking_community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($ranking_community_row['community_id'], ACSMsg::get_mst('contents_type_master', 'D07'));
         // 順位
         $ranking_community_row_array[$index]['rank'] = $rank;
         $rank++;
     }
     // set
     $this->setAttribute('ranking_community_row_array', $ranking_community_row_array);
     // テンプレートをセットする
     $this->setTemplate('CommunityRanking.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("CommunityRanking", $this->render());
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:CommunityRankingInputView.class.php

示例15: execute

 function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
     // 加工
     foreach ($commented_diary_row_array as $index => $commented_diary_row) {
         $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
         $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $commented_diary_row_array, $display_count);
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
     $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('get_days', $request->getAttribute('get_days'));
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DiaryCommentHistory.tpl.php');
     return parent::execute();
 }
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:DiaryCommentHistorySuccessView.class.php


注:本文中的BaseView::execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。