OSDN Git Service

d8f24ffc9e79a6a47e07a1d224349f0742c51275
[acs/acs.git] / webapp / modules / User / actions / DiaryRSSAction.class.php
1 <?php
2 /**
3  * ¥À¥¤¥¢¥ê¡¼RSS  Action¥¯¥é¥¹
4  */
5 // $Id: DiaryRSSAction.class.php,v 1.1 2006/12/13 09:51:46 w-ota Exp $
6
7 class DiaryRSSAction extends BaseAction
8 {
9         // GET
10         function execute() {
11                 $context = $this->getContext();
12                 $controller = $context->getController();
13                 $request =  $context->getRequest();
14                 $user = $context->getUser();
15                 
16                 $acs_user_info_row = $user->getAttribute('acs_user_info_row');
17                 // É½¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
18                 $user_community_id = $request->ACSgetParameter('id');
19
20                 // ¥æ¡¼¥¶¾ðÊó
21                 $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
22
23                 // ¼èÆÀ´ü´Ö
24                 $term = intval($request->ACSgetParameter('term'));
25                 if (!$term) {
26                         // ¥·¥¹¥Æ¥àÀßÄê: ¥Þ¥¤¥Ú¡¼¥¸: ¥À¥¤¥¢¥ê¡¼RSS¼èÆÀ´ü´Ö
27                         $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'DIARY_RSS_TERM');
28                 }
29
30                 // ºÇ¿·¤Î¥À¥¤¥¢¥ê¡¼RSS
31                 $diary_row_array = ACSDiary::get_new_diary_rss_row_array($user_community_id, $term);
32
33                 // set
34                 $request->setAttribute('target_user_info_row', $target_user_info_row);
35                 $request->setAttribute('diary_row_array', $diary_row_array);
36                 $request->setAttribute('term', $term);
37
38                 return View::SUCCESS;
39         }
40
41         function isSecure () {
42                 return false;
43         }
44 }
45
46 ?>