From 0e017ebdc1edbbf230f0f0160f103c39ef675725 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Sun, 6 Mar 2011 20:12:36 +0100 Subject: datenbank erweitert, BootMenu, Config fertig --- application/models/BootMapper.php | 83 --------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 application/models/BootMapper.php (limited to 'application/models/BootMapper.php') diff --git a/application/models/BootMapper.php b/application/models/BootMapper.php deleted file mode 100644 index 43f9d3d..0000000 --- a/application/models/BootMapper.php +++ /dev/null @@ -1,83 +0,0 @@ -_dbTable = $dbTable; - - return $this; - } - - public function getDbTable() - { - if (null === $this->_dbTable) { - $this->setDbTable('Application_Model_DbTable_Boot'); - } - - return $this->_dbTable; - } - - public function save(Application_Model_Boot $bot) - { - - $data = array(); - - if (null === ($id = $bot->getID()) ) { - unset($data['botID']); - $this->getDbTable()->insert($data); - } else { - $this->getDbTable()->update($data, array('botID = ?' => $id)); - } - } - - public function delete(Application_Model_Boot $bot) - { - if (null === ($id = $bot->getID()) ) { - return; - } else { - $this->getDbTable()->delete(array('botID = ?' => $id)); - } - } - - public function find($id, Application_Model_Boot $bot) - { - $result = $this->getDbTable()->find($id); - if (0 == count($result)) { - return; - } - - $row = $result->current(); - - $bot; - } - - public function fetchAll() - { - $resultSet = $this->getDbTable()->fetchAll(); - $entries = array(); - foreach ($resultSet as $row) { - $entry = new Application_Model_Boot(); - - $entry; - - $entries[] = $entry; - } - return $entries; - } - - - -} - -- cgit v1.2.3-55-g7522