本文整理汇总了PHP中ACSMsg类的典型用法代码示例。如果您正苦于以下问题:PHP ACSMsg类的具体用法?PHP ACSMsg怎么用?PHP ACSMsg使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ACSMsg类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
$context = $this->getContext();
$controller = $context->getController();
$request = $context->getRequest();
$user = $context->getUser();
if (!$this->get_execute_privilege()) {
$controller->forward(SECURE_MODULE, SECURE_ACTION);
return;
}
/* コミュニティ情報取得 */
$target_community_id = $request->getParameter('community_id');
$target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
/* 削除処理 */
$delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
$ret = ACSCommunity::delete_community_member($target_community_id, $delete_user_community_id_array);
if (!$ret) {
"ERROR : delete community member failed";
exit;
}
/* 完了画面表示 */
// 引数セット
$community_top_url = $this->getControllerPath('Community', '');
$community_top_url .= '&community_id=' . $target_community_row['community_id'];
$community_top_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
$done_obj = new ACSDone();
$done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M001'));
$done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M002'));
$done_obj->add_link($community_top_link_name, $community_top_url);
$request->setAttribute('done_obj', $done_obj);
// 画面呼び出し
$controller->forward('Common', 'Done');
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:33,代码来源:DeleteCommunityMemberAction.class.php
示例2: 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');
$form = $form = $request->ACSGetParameters();
// 対象となるコミュニティIDを取得
$community_id = $request->ACSgetParameter('community_id');
// コミュニティ情報
$community_row = ACSCommunity::get_community_profile_row($community_id);
// 承認が必要か
$is_admission_required = ACSCommunity::is_admission_required_for_join_community($acs_user_info_row['user_community_id'], $community_id);
// forward
$done_obj = new ACSDone();
$done_obj->set_message(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M003'));
$done_obj->add_link($community_row['community_name'] . ' ' . ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M004'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
if ($is_admission_required) {
// コミュニティ参加承認待ち登録
$waiting_id = ACSWaiting::set_waiting_for_join_community($community_id, $acs_user_info_row['user_community_id'], $form['message']);
// 参加承認依頼通知メール
ACSWaiting::send_admission_request_notify_mail($waiting_id);
$done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M001'));
} else {
// コミュニティメンバ登録
$community_member_form = array();
$community_member_form['community_id'] = $community_id;
$community_member_form['user_community_id'] = $acs_user_info_row['user_community_id'];
ACSCommunity::set_community_member($community_member_form);
$done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M002'));
}
$request->setAttribute('done_obj', $done_obj);
$controller->forward('Common', 'Done');
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:JoinCommunityAction.class.php
示例3: execute
function execute()
{
$context = $this->getContext();
$controller = $context->getController();
$request = $context->getRequest();
$user = $context->getUser();
if (!$this->get_execute_privilege()) {
$controller->forward(SECURE_MODULE, SECURE_ACTION);
return;
}
//削除処理を行う
$target_community_id = $request->getParameter('community_id');
$acs_user_info_row = $user->getAttribute('acs_user_info_row');
$bbs_id = $request->getParameter('bbs_id');
//ファイル情報テーブルのデータ削除
$bbs_obj = ACSBBS::get_bbs_row($bbs_id);
if (!$bbs_obj) {
echo ACSMsg::get_msg('Community', 'DeleteBBSAction.class.php', 'M001');
}
$ret = ACSBBS::delete_bbs($bbs_obj);
if (!$ret) {
echo "ERROR: delete article failed";
}
//表示
$bbs_change_url = $this->getControllerPath('Community', 'BBS');
$bbs_change_url .= '&community_id=' . $target_community_id . '&bbs_id=' . $bbs_id;
header("Location: {$bbs_change_url}");
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:DeleteBBSAction.class.php
示例4: 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
示例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');
// get
$form = $request->ACSgetParameters();
// 検索時
if ($form['search']) {
// ユーザ情報一覧を取得する
if ($acs_user_info_row['is_acs_user']) {
// ログインユーザのアクセス
$user_info_row_array = ACSUser::search_user_info_row_array($form, array(ACSMsg::get_mst('open_level_master', 'D01'), ACSMsg::get_mst('open_level_master', 'D02')));
// 自己紹介
foreach ($user_info_row_array as $index => $user_info_row) {
$user_info_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($user_info_row['user_community_id'], ACSMsg::get_mst('contents_type_master', 'D08'));
}
} else {
// 一般ユーザのアクセス
$user_info_row_array = ACSUser::search_user_info_row_array($form, array(ACSMsg::get_mst('open_level_master', 'D01')));
// 自己紹介
foreach ($user_info_row_array as $index => $user_info_row) {
$user_info_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($user_info_row['user_community_id'], ACSMsg::get_mst('contents_type_master', 'D07'));
}
}
// set
$request->setAttribute('user_info_row_array', $user_info_row_array);
}
// set
$request->setAttribute('form', $form);
return View::INPUT;
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:34,代码来源:SearchUserAction.class.php
示例6: 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
示例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');
$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
示例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');
$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
示例9: execute
function execute()
{
$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');
// 対象となるコミュニティIDを取得
$community_id = $request->ACSgetParameter('community_id');
// コミュニティ情報
$community_row = ACSCommunity::get_community_row($community_id);
$form = $request->ACSGetParameters();
$form['community_id'] = $community_row['community_id'];
// 更新
ACSCommunity::update_community_admin($acs_user_info_row, $form);
$done_obj = new ACSDone();
$done_obj->set_title(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M001'));
$done_obj->set_message(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M002'));
$done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
$request->setAttribute('done_obj', $done_obj);
$controller->forward('Common', 'Done');
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:26,代码来源:EditCommunityAdminAction.class.php
示例10: registerValidators
function registerValidators(&$validatorManager)
{
/* 必須チェック */
parent::regValidateName($validatorManager, "subject", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M002'));
parent::regValidateName($validatorManager, "body", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M003'));
parent::regValidateName($validatorManager, "expire_date", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M004'));
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:7,代码来源:CreateSystemAnnounceAction.class.php
示例11: execute
function execute()
{
$context =& $this->getContext();
$controller = $context->getController();
$user = $context->getUser();
$request = $context->getRequest();
$pagefile = ACS_PAGES_DIR . "index.html." . ACSMsg::get_lang();
$lockfile = $pagefile . ".locked";
// 静的ファイル書き換え中の場合(0.5秒待つ)
if (is_readable($lockfile)) {
usleep(500000);
}
// 書き換え中でなく、静的ファイルが存在する場合
if (!is_readable($lockfile) && is_readable($pagefile)) {
// 静的ファイル作成時間が有効時間範囲内の場合
if (time() - filemtime($pagefile) <= ACS_PAGES_EFFECTIVE_SEC) {
// 静的トップを標準出力
mb_http_output('pass');
readfile($pagefile);
return;
}
}
$request->setAttribute('force_realtime', 1);
$controller->forward("Public", "Index");
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:25,代码来源:StaticIndexAction.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');
// 表示対象となるユーザコミュニティIDを取得
$user_community_id = $request->ACSgetParameter('id');
// ユーザ情報
$target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
// 取得期間
$term = intval($request->ACSgetParameter('term'));
if (!$term) {
// システム設定: マイページ: ダイアリーRSS取得期間
$term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'DIARY_RSS_TERM');
}
// 最新のダイアリーRSS
$diary_row_array = ACSDiary::get_new_diary_rss_row_array($user_community_id, $term);
// set
$request->setAttribute('target_user_info_row', $target_user_info_row);
$request->setAttribute('diary_row_array', $diary_row_array);
$request->setAttribute('term', $term);
return View::SUCCESS;
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:25,代码来源:DiaryRSSAction.class.php
示例13: 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
示例14: 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_community_id = $request->ACSgetParameter('id');
$folder_id = $request->ACSgetParameter('folder_id');
$file_id = $request->ACSgetParameter('file_id');
$file_obj = ACSFile::get_file_info_instance($file_id);
$contents_link_url = $this->getControllerPath('User', 'FileDetail') . "&id=" . $target_user_community_id . "&file_id=" . $file_id . "&folder_id=" . $folder_id;
// 足跡登録
$contents_type_name = ACSMsg::get_mst('contents_type_master', 'D33');
$contents_type_arr = ACSDB::get_master_array("contents_type", "contents_type_name='" . $contents_type_name . "'");
$form['community_id'] = $target_user_community_id;
$form['visitor_community_id'] = $acs_user_info_row['user_community_id'];
$form['contents_type_code'] = array_search($contents_type_name, $contents_type_arr);
$form['contents_title'] = $file_obj->get_display_file_name();
$form['contents_link_url'] = $contents_link_url;
$form['contents_date'] = $file_obj->get_update_date();
$form['post_date'] = 'now';
$ret = ACSUser::set_footprint($form);
header("Location: {$contents_link_url}");
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:25,代码来源:FootprintFileDetailAction.class.php
示例15: 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');
$form = $request->getAttribute('form');
// get
$user_info_row_array = $request->getAttribute('user_info_row_array');
foreach ($user_info_row_array as $index => $user_info_row) {
$user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
$user_info_row_array[$index]['edit_page_url'] = $this->getControllerPath('System', 'EditUser') . '&id=' . $user_info_row['user_community_id'];
$user_info_row_array[$index]['delete_page_url'] = $this->getControllerPath('System', 'DeleteUser') . '&id=' . $user_info_row['user_community_id'];
$user_info_row_array[$index]['login_info_url'] = $this->getControllerPath('System', 'LoginInfo') . '&id=' . $user_info_row['user_community_id'];
}
$add_user_url = $this->getControllerPath('System', 'AddUser');
// ページング設定
$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, $user_info_row_array, $display_count);
// URL
$action_url = $this->getControllerPath();
// テンプレート
$this->setScreenId("0001");
$this->setTemplate('UserList.tpl.php');
// set
$this->setAttribute('form', $form);
$this->setAttribute('user_info_row_array', $user_info_row_array);
$this->setAttribute('paging_info', $paging_info);
$this->setAttribute('add_user_url', $add_user_url);
$this->setAttribute('action_url', $action_url);
$this->setAttribute('module', 'System');
$this->setAttribute('action', 'UserList');
return parent::execute();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:UserListSuccessView.class.php
示例16: 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
示例17: 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');
$user_id = $user->getAttribute('login_user_id');
if ($user_id == null || $user_id == "") {
if (ACSSystem::check_connect_outside() != "0") {
// LDAP接続エラーの場合、処理終了
$this->setError($controller, $request, $user, 'login_input', ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M002'));
} else {
if ($_POST['userid'] != NULL && $_POST['userid'] != "") {
// エラーの場合、処理終了
$this->setError($controller, $request, $user, 'login_input', ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M001'));
}
}
return View::INPUT;
}
if ($acs_user_info_row['is_acs_user']) {
// ログ登録: ログイン
ACSLog::set_log($acs_user_info_row, 'Login', true, "[UserID:" . $acs_user_info_row['user_id'] . "]");
// ラストログイン登録
ACSUser::set_last_login($acs_user_info_row);
header("Location: ./" . $_SERVER['REQUEST_URI']);
}
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:GlobalSecureAction.class.php
示例18: 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');
// 対象となるユーザコミュニティIDを取得
$user_community_id = $request->ACSgetParameter('id');
// 対象となるcontents_keyを取得
$contents_key = $request->ACSgetParameter('contents_key');
// 対象となるコンテンツ種別コードを取得
$contents_type_code = $request->ACSgetParameter('contents_type_code');
// コンテンツ種別マスタ
$contents_type_master_array = ACSDB::get_master_array('contents_type');
// 公開範囲
$open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master', 'D10'), $contents_type_master_array[$contents_type_code]);
if ($acs_user_info_row['is_acs_user']) {
// マイフレンズグループ
$friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
} else {
$friends_group_row_array = array();
}
// set
$request->setAttribute('contents_key', $contents_key);
$request->setAttribute('contents_type_code', $contents_type_code);
$request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
$request->setAttribute('friends_group_row_array', $friends_group_row_array);
return View::SUCCESS;
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:SetOpenLevelForProfileAction.class.php
示例19: execute
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;
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:34,代码来源:SearchCommunityAction.class.php
示例20: 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');
// 表示対象となるコミュニティIDを取得
$community_id = $request->getParameter('community_id');
// コミュニティ情報
$community_row = ACSCommunity::get_community_row($community_id);
$community_row['community_profile'] = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master', 'D07'));
// 取得期間
$term = intval($request->ACSgetParameter('term'));
if (!$term) {
// システム設定: コミュニティ: 掲示板RSS取得期間
$term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D03'), 'BBS_RSS_TERM');
}
// 最新の掲示板RSS
$bbs_row_array = ACSBBS::get_new_bbs_rss_row_array($community_id, $term);
foreach ($bbs_row_array as $index => $bbs_row) {
// 信頼済みコミュニティ一覧
$bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
}
// set
$request->setAttribute('community_row', $community_row);
$request->setAttribute('bbs_row_array', $bbs_row_array);
$request->setAttribute('term', $term);
return View::SUCCESS;
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:BBSRSSAction.class.php
注:本文中的ACSMsg类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论