Namespace mindmaps.LocalDocumentStorage
Defined in: Storage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
mindmaps.LocalDocumentStorage.deleteAllDocuments()
Deletes all documents from the local storage.
|
<static> |
mindmaps.LocalDocumentStorage.deleteDocument(doc)
Deletes a document from the local storage.
|
<static> |
mindmaps.LocalDocumentStorage.getDocumentIds()
Gets all document ids found in the local storage object.
|
<static> |
mindmaps.LocalDocumentStorage.getDocuments()
Finds all documents in the local storage object.
|
<static> |
mindmaps.LocalDocumentStorage.loadDocument(docId)
Loads a document from the local storage.
|
<static> |
mindmaps.LocalDocumentStorage.saveDocument(doc)
Saves a document to the localstorage.
|
Method Detail
<static>
mindmaps.LocalDocumentStorage.deleteAllDocuments()
Deletes all documents from the local storage.
<static>
mindmaps.LocalDocumentStorage.deleteDocument(doc)
Deletes a document from the local storage.
- Parameters:
- {mindmaps.Document} doc
<static>
{Array}
mindmaps.LocalDocumentStorage.getDocumentIds()
Gets all document ids found in the local storage object.
- Returns:
- {Array} an Array of document ids
<static>
{Array}
mindmaps.LocalDocumentStorage.getDocuments()
Finds all documents in the local storage object.
- Returns:
- {Array} an Array of documents
<static>
{mindmaps.Document}
mindmaps.LocalDocumentStorage.loadDocument(docId)
Loads a document from the local storage.
- Parameters:
- {String} docId
- Returns:
- {mindmaps.Document} the document or null if not found.
<static>
{Boolean}
mindmaps.LocalDocumentStorage.saveDocument(doc)
Saves a document to the localstorage. Overwrites the old document if
one with the same id exists.
- Parameters:
- {mindmaps.Document} doc
- Returns:
- {Boolean} true if save was successful, false otherwise.