summaryrefslogtreecommitdiff
path: root/modules/tag/models
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-23 18:00:44 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-23 18:00:44 +0000
commitab20406ef21c1011c2a4b189e8340dc7ee87a813 (patch)
tree76c41946b86675f42d56e03350605fc49923d61c /modules/tag/models
parent7491e3c44affb89fe28030f8759283bc1b4aa291 (diff)
Tag module database definitions
Diffstat (limited to 'modules/tag/models')
-rw-r--r--modules/tag/models/tag.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php
new file mode 100644
index 00000000..0bf85843
--- /dev/null
+++ b/modules/tag/models/tag.php
@@ -0,0 +1,25 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2008 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+class Tag_Model extends ORM {
+ protected $has_and_belongs_to_many = array("items");
+
+ var $rules = array(
+ "name" => "required|length[4,32]");
+} \ No newline at end of file