_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; } }