/** * Funzione che aggiorna il valore di un prezzo nelle tabelle * @param type $idTabella * @param Prezzo $prezzo * @return boolean */ public function updatePrezzo(Prezzo $prezzo) { try { $this->wpdb->update($this->table_prezzi, array('prezzo' => $prezzo->getPrezzo()), array('id_tabella' => $prezzo->getIdTabella(), 'val_row' => $prezzo->getValRow(), 'val_col' => $prezzo->getValCol()), array('%f'), array('%d', '%d', '%d')); return true; } catch (Exception $ex) { _e($ex); return false; } }