[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7624]
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [7624] |
Date: |
Fri, 16 Sep 2011 08:24:24 +0000 |
Revision: 7624
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7624
Author: erikhl
Date: 2011-09-16 08:24:24 +0000 (Fri, 16 Sep 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/inc/model/class.model.inc.php
Modified: trunk/controller/inc/model/class.model.inc.php
===================================================================
--- trunk/controller/inc/model/class.model.inc.php 2011-09-16 08:23:32 UTC
(rev 7623)
+++ trunk/controller/inc/model/class.model.inc.php 2011-09-16 08:24:24 UTC
(rev 7624)
@@ -50,5 +50,18 @@
$this->{"$field"} = $value;
}
+ /**
+ * Validate the object according to the database setup and custom
rules. This function
+ * can be overridden in subclasses. It is then up to the subclasses to
call this parent method
+ * in order to validate against the standard database rules. The
subclasses can in addition
+ * add their own specific validation logic.
+ *
+ * @return boolean true if the object is valid, false otherwise
+ */
+ public function validates()
+ {
+ return true;
+ }
+
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7624],
Erik Holm-Larsen <=