system/modules/DocumentManagementSystem/classes/DmsWriter.php
public function updateDocument(\Document $document)
  {
    $arrSet = $this->buildDocumentDataArray($document, false);
    
    $this->Database->prepare("UPDATE tl_dms_documents %s WHERE id=?")->set($arrSet)->execute($document->id);
    
    return $document;
  }
public function updateDocument(\Document $document)
  {
    $arrSet = $this->buildDocumentDataArray($document, false);
    
    $this->Database->prepare("UPDATE tl_dms_documents %s WHERE id=?")->set($arrSet)->execute($document->id);
    
    return $document;
  }
public function updateDocument ( \ Document $ document ) { $ arrSet = $ this -> buildDocumentDataArray ( $ document , false ) ; $ this -> Database -> prepare ( "UPDATE tl_dms_documents %s WHERE id=?" ) -> set ( $ arrSet ) -> execute ( $ document -> id ) ; return $ document ; }
Update the document.

@param  Document  $document  The document to update.
@return  document  Returns the document.
Update the document .