diff options
| author | michael pereira | 2011-03-10 16:40:22 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-10 16:40:22 +0100 |
| commit | 6af55d49f3984d086872860832d0d296a2591647 (patch) | |
| tree | 2eb0c2f6955555cf3df4a080b5cdea34973d7da4 /application/models/BootMenuEntriesMapper.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-6af55d49f3984d086872860832d0d296a2591647.tar.gz pbs2-6af55d49f3984d086872860832d0d296a2591647.tar.xz pbs2-6af55d49f3984d086872860832d0d296a2591647.zip | |
Bootmenu auf preboot JSON
Diffstat (limited to 'application/models/BootMenuEntriesMapper.php')
| -rw-r--r-- | application/models/BootMenuEntriesMapper.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php index 7a2da59..a0a5309 100644 --- a/application/models/BootMenuEntriesMapper.php +++ b/application/models/BootMenuEntriesMapper.php @@ -30,6 +30,24 @@ class Application_Model_BootMenuEntriesMapper echo "Error message 2: " . $e->getMessage() . "\n"; } } + + public function findByArray($criteria, $value) + { + try{ + $db = Zend_Db_Table::getDefaultAdapter(); + $select = $this->getDbTable()->select() + ->from($this->_dbTable) + ->where($criteria . ' = ?', $value) + ->order('order'); + $stmt = $select->query(); + $result = $stmt->fetchAll(); + + return $result; + + }catch (Zend_Exception $e) { + echo "Error message 2: " . $e->getMessage() . "\n"; + } + } public function setDbTable($dbTable) { |
