OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Public / actions / NewCommunityAction.class.php
diff --git a/webapp/modules/Public/actions/NewCommunityAction.class.php b/webapp/modules/Public/actions/NewCommunityAction.class.php
new file mode 100644 (file)
index 0000000..e6bae16
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+// $Id: NewCommunityAction.class.php,v 1.2 2006/11/20 08:44:16 w-ota Exp $
+
+class NewCommunityAction extends BaseAction {
+
+       public function execute ()
+       {
+               $context = &$this->getContext();
+               $user = $context->getUser();
+               $request = $context->getRequest();
+               $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+               // ¿·Ãå¸ø³«¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+               $new_community_row_array = ACSCommunity::get_new_community_row_array();
+               foreach ($new_community_row_array as $index => $new_community_row) {
+                       // ³µÍ×
+                       $new_community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($new_community_row['community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+               }
+
+               // set
+               $request->setAttribute('new_community_row_array', $new_community_row_array);
+
+               return View::INPUT;
+       }
+       
+       /**
+        * Ç§¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+        * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+        * @access  public
+        * @return  boolean Ç§¾Ú¥Á¥§¥Ã¥¯Í­Ìµ¡Êtrue:ɬÍס¢false:ÉÔÍסË
+        */
+       public function isSecure()
+       {
+               return false;
+       }
+}
+
+?>