/** * Inserisce un record nella tabella di associazione ordini * @param string $order_number * @param string $idtransazione * @param float $order_total * @return mixed FALSE se operazione fallita, transaction_id se OK */ private function insertCustomOrder($order_number, $idtransazione, $order_total) { $my =& JFactory::getUser(); // se è già presente lo stesso idtransazione, lo elimino alla tabella // anche se in VM 2.0 non dovrebbe accadere perchè ogni volta l'ordine è diverso $this->deleteCustomOrder($idtransazione); $values = array("order_number" => $order_number, "idtransazione" => $idtransazione, "order_total" => $order_total, "cdate" => time(), "user_id" => $my->id, "modulename" => $this->modulename, "language" => $this->LANG->getLanguage()); return $this->db->queryInsert("#__propay_transactions", $values, true); }