diff options
| author | michael pereira | 2011-03-29 10:59:15 +0200 |
|---|---|---|
| committer | michael pereira | 2011-03-29 10:59:15 +0200 |
| commit | 03b4da383449c290ea01723095d1a87fa257fea5 (patch) | |
| tree | 4943185a212ced33465b92811cd070bf8e45b717 /application/models/PreBootMapper.php | |
| parent | updatebutton geadded (diff) | |
| download | pbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.gz pbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.xz pbs2-03b4da383449c290ea01723095d1a87fa257fea5.zip | |
Preboot User Controller fertig, ACL fehlt noch
Diffstat (limited to 'application/models/PreBootMapper.php')
| -rw-r--r-- | application/models/PreBootMapper.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/application/models/PreBootMapper.php b/application/models/PreBootMapper.php index db6d99f..6053b19 100644 --- a/application/models/PreBootMapper.php +++ b/application/models/PreBootMapper.php @@ -14,11 +14,21 @@ class Application_Model_PreBootMapper ->where($criteria . ' = ?', $value); $stmt = $select->query(); $result = $stmt->fetchAll(); - return $result; + + $entries = array(); + foreach ($result as $row) { + + $entry = new Application_Model_PreBoot($row); + $entry->setID($row['prebootID']); + $entries[] = $entry; + } + + return $entries; }catch (Zend_Exception $e) { echo "Error message 2: " . $e->getMessage() . "\n"; } } + public function setDbTable($dbTable) { |
