/** * @param WebMailMessage $message * @param Folder $folder * @param bool $downloaded * @return bool */ function SaveMessageHeader(&$message, &$folder, $downloaded, $_id_msg = null) { if (null === $_id_msg) { $_id_msg = $this->SelectLastIdMsg(); } $message->IdMsg = $_id_msg ? $_id_msg : 1; $result = $this->_dbConnection->Execute($this->_commandCreator->SaveMessageHeader($message, $folder, $downloaded, $this->Account)); $message->IdDb = $this->_dbConnection->GetLastInsertId(); return $result; }
/** * @param WebMailMessage $message * @param Folder $folder * @param bool $downloaded * @return bool */ function SaveMessageHeader(&$message, &$folder, $downloaded) { $result = $this->_dbConnection->Execute($this->_commandCreator->SaveMessageHeader($message, $folder, $downloaded, $this->Account)); $message->IdDb = $this->_dbConnection->GetLastInsertId(); return $result; }