/**
  * Load this value from the temporary upload table
  * @param $key;
  */
 public function setFromTemporaryTable()
 {
     if (!$this->tmp_key) {
         return false;
     }
     if (!self::$setStmt) {
         $db = MDB2::singleton();
         $stmt = $db->prepare("SELECT `value` FROM `temp_upload` WHERE `key` = ?", array('text'), MDB2_PREPARE_RESULT);
         if (I2CE::pearError($stmt, "Error creating temp_upload read stement")) {
             return false;
         }
         self::$setStmt = $stmt;
     }
     $res = self::$setStmt->execute($this->tmp_key);
     if (I2CE::pearError($res, "Error reading from tmp_upload temporary ")) {
         return false;
     }
     if (!($row = $res->fetchRow()) || !$row->value) {
         I2CE::raiseError("No data read");
         return;
     }
     $this->setFromDB($row->value);
     //$this->tmp_key = false;
 }