Esempio n. 1
0
 public function fetchAll()
 {
     $resultSet = $this->getDbTable()->fetchAll();
     $entries = array();
     foreach ($resultSet as $row) {
         $entry = new App_Model_Atm();
         $entry->setVerificationDescription($row->verification_description)->setDescription($row->description)->setAdditionalProperty($row->additional_property)->setOneTimeWithdrawLimit($row->one_time_withdraw_limit)->setCharges($row->charges)->setCardUsage($row->card_usage)->setLanguages($row->languages)->setDescriptiveLocation($row->descriptive_location)->setLongitude($row->longitude)->setLatitude($row->latitude)->setAtmNetworkId($row->atm_network_id)->setBankId($row->bank_id)->setId($row->id);
         $entries[] = $entry;
     }
     return $entries;
 }
Esempio n. 2
0
 public function deleteAction()
 {
     $id = $this->getRequest()->getParam('id');
     $this->view->title = "Delete Atm ";
     $this->view->headTitle($this->view->title);
     if ($this->getRequest()->isPost()) {
         $del = $this->getRequest()->getPost('del');
         if ($del == 'Yes') {
             $id = $this->getRequest()->getPost('id');
             $tbl = new App_Model_Atm();
             $mapper = new App_Model_AtmMapper();
             $row = $tbl->find($id);
             $mapper->delete($tbl);
         }
         $this->_helper->redirector('index');
     } else {
         $tbl = new App_Model_Atm();
         $this->view->id = $id;
     }
 }