system/modules/DocumentManagementSystem/classes/DmsWriter.php
public function storeDocument(\Document $document)
  {
    $arrSet = $this->buildDocumentDataArray($document, false);
    
    $objDocument = $this->Database->prepare("INSERT INTO tl_dms_documents %s")->set($arrSet)->execute();
    
    $document->id = $objDocument->insertId;
    return $document;
  }
public function storeDocument(\Document $document)
  {
    $arrSet = $this->buildDocumentDataArray($document, false);
    
    $objDocument = $this->Database->prepare("INSERT INTO tl_dms_documents %s")->set($arrSet)->execute();
    
    $document->id = $objDocument->insertId;
    return $document;
  }
public function storeDocument ( \ Document $ document ) { $ arrSet = $ this -> buildDocumentDataArray ( $ document , false ) ; $ objDocument = $ this -> Database -> prepare ( "INSERT INTO tl_dms_documents %s" ) -> set ( $ arrSet ) -> execute ( ) ; $ document -> id = $ objDocument -> insertId ; return $ document ; }
Store the new document in the given category.

@param  Document  $document  The document to store.
@return  document  Returns the document.
Store the new document in the given category .