From 6fa0219202ce4ccc5c4592e66031bb0f7f8be2b0 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 14 Oct 2013 15:51:58 +0000 Subject: added DistroModel to get the list of allowed distros from the database --- h-source/Application/Models/DistrosModel.php | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 h-source/Application/Models/DistrosModel.php (limited to 'h-source/Application/Models') diff --git a/h-source/Application/Models/DistrosModel.php b/h-source/Application/Models/DistrosModel.php new file mode 100644 index 0000000..41e0c6a --- /dev/null +++ b/h-source/Application/Models/DistrosModel.php @@ -0,0 +1,32 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +class DistrosModel extends Model_Tree { + + public function __construct() { + $this->_tables = 'distros'; + $this->_idFields = 'id_distro'; + + parent::__construct(); + } + +} \ No newline at end of file -- cgit v1.2.3