/** * override saveToDB to make another * @return type */ public function saveToDB() { if ($this->checkApprove()) { return parent::saveToDB(); } return FALSE; }
/** * override saveToDB to make another * @return type */ public function saveToDB() { if (parent::saveToDB() === TRUE) { $updateArray = array('last_transaction' => $this->getHeaderField("MSG_TYPE")); $whereArray = array('request_id =?' => $this->getHeaderField("REQUEST_ID")); $tbl = new Application_Model_DbTable_Requests(Np_Db::master()); return $tbl->update($updateArray, $whereArray); } }