OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / lib / class / ACSCommunityMemberModel.class.php
diff --git a/webapp/lib/class/ACSCommunityMemberModel.class.php b/webapp/lib/class/ACSCommunityMemberModel.class.php
new file mode 100644 (file)
index 0000000..9d643c8
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+// $Id: ACSCommunityMemberModel.class.php,v 1.2 2006/01/19 10:03:36 w-ota Exp $
+
+/*
+ * community_member¥â¥Ç¥ë
+ */
+class ACSCommunityMemberModel {
+
+       /*
+        * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐINSERT
+        *
+        * @param $form community_member¾ðÊó
+        * @return À®¸ù(true) / ¼ºÇÔ(false)
+        */
+       static function insert_community_member($form) {
+               ACSLib::escape_sql_array($form);
+               ACSLib::get_sql_value_array($form);
+
+               $sql  = "INSERT INTO community_member";
+               $sql .= " (community_id, user_community_id, community_member_type_code)";
+               $sql .= " VALUES ($form[community_id], $form[user_community_id], $form[community_member_type_code])";
+
+               $ret = ACSDB::_do_query($sql);
+               return $ret;
+       }
+}
+
+?>