/** * Load this value from the temporary upload table * @param $key; */ public function storeInTemporaryTable() { if (!$this->tmp_key) { return false; } if (!self::$storeStmt) { $db = MDB2::singleton(); $stmt = $db->prepare("REPLACE INTO `temp_upload` (`key`,`value`) VALUES (?,?)", array('text', 'blob'), MDB2_PREPARE_MANIP); if (I2CE::pearError($stmt, "Error creating store stement")) { return false; } self::$storeStmt = $stmt; } $res = self::$storeStmt->execute(array($this->tmp_key, $this->getDBValue())); if (I2CE::pearError($res, "Could not store into temp_upload")) { return false; } }