OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Community / actions / CommunityMemberListAction.class.php
diff --git a/webapp/modules/Community/actions/CommunityMemberListAction.class.php b/webapp/modules/Community/actions/CommunityMemberListAction.class.php
new file mode 100644 (file)
index 0000000..7677192
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+// $Id: CommunityMemberListAction.class.php,v 1.2 2005/12/28 06:36:34 w-ota Exp $
+
+class CommunityMemberListAction extends BaseAction
+{
+       // GET
+       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->ACSgetParameter('community_id');
+
+               // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+               $community_row = ACSCommunity::get_community_row($community_id);
+
+               // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+               $community_member_user_info_row_array = ACSCommunity::get_community_member_user_info_row_array($community_id);
+
+               // set
+               $request->setAttribute('community_row', $community_row);
+               $request->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+
+               return View::SUCCESS;
+       }
+
+       function isSecure () {
+               return false;
+       }
+}
+
+?>