summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authormichael pereira2011-03-30 02:20:17 +0200
committermichael pereira2011-03-30 02:20:17 +0200
commit07cf31616a364c310144bde46af1cb20a3be7687 (patch)
tree9c94c5ee926ef8e0dbc32a16a970b447f6cb0a50 /application/models
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-07cf31616a364c310144bde46af1cb20a3be7687.tar.gz
pbs2-07cf31616a364c310144bde46af1cb20a3be7687.tar.xz
pbs2-07cf31616a364c310144bde46af1cb20a3be7687.zip
BootIso Controller fertig
Diffstat (limited to 'application/models')
-rw-r--r--application/models/BootIsoMapper.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/application/models/BootIsoMapper.php b/application/models/BootIsoMapper.php
index 397d393..52849b2 100644
--- a/application/models/BootIsoMapper.php
+++ b/application/models/BootIsoMapper.php
@@ -14,7 +14,16 @@ class Application_Model_BootIsoMapper
->where($criteria . ' = ?', $value);
$stmt = $select->query();
$result = $stmt->fetchAll();
- return $result;
+
+ $entries = array();
+ foreach ($result as $row) {
+ $entry = new Application_Model_BootIso($row);
+ $entry->setID($row['bootisoID']);
+ $entries[] = $entry;
+ }
+
+ return $entries;
+
}catch (Zend_Exception $e) {
echo "Error message 2: " . $e->getMessage() . "\n";
}