From 7e5935d5325a7bc20fb5603a76a5af4d7df499a9 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 10 Dec 2008 19:44:58 +0000 Subject: Create a module parameter table. This will be useful if a module wants to store information, but is not enough to warrant a table of its own --- core/models/module.php | 1 + core/models/parameter.php | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 core/models/parameter.php (limited to 'core/models') diff --git a/core/models/module.php b/core/models/module.php index de4cc43d..5229f42d 100644 --- a/core/models/module.php +++ b/core/models/module.php @@ -18,4 +18,5 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Module_Model extends ORM { + protected $has_many = array("parameters"); } diff --git a/core/models/parameter.php b/core/models/parameter.php new file mode 100644 index 00000000..9817ff2f --- /dev/null +++ b/core/models/parameter.php @@ -0,0 +1,22 @@ +