OpenDocumentService

class \TYPO3\CMS\Opendocs\Service\OpenDocumentService

Access to open and recent documents

Table of Contents

Properties

$backendUser  : BackendUserAuthentication

Methods

__construct()  : mixed
Constructor
closeAllDocuments()  : void
Closes all open documents
closeDocument()  : void
Close a document and add it to the list of recent documents
getOpenDocuments()  : array
Get the list of open documents for the current user
getRecentDocuments()  : array
Get the list of recent documents for the current user
addToRecentDocuments()  : void
Add a document to the list of recent documents
storeOpenDocuments()  : void
Store a list of open documents

Properties

Methods

closeAllDocuments()

Closes all open documents

public closeAllDocuments() : void

closeDocument()

Close a document and add it to the list of recent documents

public closeDocument(string $identifier) : void

Parameters

$identifier : string

a document identifier (MD5 hash)

getOpenDocuments()

Get the list of open documents for the current user

public getOpenDocuments() : array

Return values

array

getRecentDocuments()

Get the list of recent documents for the current user

public getRecentDocuments() : array

Return values

array

addToRecentDocuments()

Add a document to the list of recent documents

protected addToRecentDocuments(string $identifier, array $document) : void

Parameters

$identifier : string

identifier of the document

$document : array

document data

storeOpenDocuments()

Store a list of open documents

protected storeOpenDocuments(array $openDocuments) : void

Parameters

$openDocuments : array
On this page