OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Public / actions / NewOpenDiaryAction.class.php
diff --git a/webapp/modules/Public/actions/NewOpenDiaryAction.class.php b/webapp/modules/Public/actions/NewOpenDiaryAction.class.php
new file mode 100644 (file)
index 0000000..aafc168
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+class NewOpenDiaryAction 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_open_diary_row_array = ACSDiary::get_new_open_diary_row_array();
+
+               // set
+               $request->setAttribute('new_open_diary_row_array', $new_open_diary_row_array);
+
+               return View::INPUT;
+       }
+
+       /**
+        * Ç§¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+        * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+        * @access  public
+        * @return  boolean Ç§¾Ú¥Á¥§¥Ã¥¯Í­Ìµ¡Êtrue:ɬÍס¢false:ÉÔÍסË
+        */
+       public function isSecure()
+       {
+               return false;
+       }
+}
+
+?>