- May 2022
-
foundryvtt.com foundryvtt.com
-
implementation(): Class
Changed from V9
(static) implementation :function
Possibly an oversight? The V9 docs description reads
Return a reference to the implemented subclass of this base document type.
-
Static hasSystemData
New in V10
-
DataModel
V10's abstract.Document class extends abstract.DataModel
Changed from Interfaces schema
-
An extension of the base DataModel which defines a Document. Documents are special in that they are persisted to the database and referenced by _id.
The abstract base class shared by both client and server-side which defines the model for a single document type.
Create a new Document by providing an initial data object.
-
-
foundryvtt.com foundryvtt.com
-
DataModel - The abstract base class which defines a data model with corresponding schema and state.
Changed from DocumentData
-
- Apr 2022
-
foundryvtt.com foundryvtt.com
-
(protected) _validateModel(data)
new function in V10
-
(protected) _initializeSource(data) → {object}
New function in V10
-
Overrides: abstract.DataModel#_initialize Initialize the instance by copying data from the source object to instance attributes.
Override of the DataModel is new in V10
V9 description:
Perform one-time initialization tasks which only occur when the Document is first constructed.
-
(protected, static) _logV10CompatibilityWarning()
New in V10 😮
-
(protected, static) _logDataFieldMigration()
New in V10
-
:DataModel|null Overrides: abstract.DataModel#parent
Changed in V10 from V9 :Document|null
V9 description:
An immutable reverse-reference to the parent Document to which this embedded Document belongs.
-
invalid :boolean Overrides: abstract.DataModel#invalid Is the current state of this DataModel invalid? Type: boolean
New in V10
-
:Class
Changed from V9 implementation :function
Possibly an oversight? The V9 doc description reads
Return a reference to the implemented subclass of this base document type.
-
Members
Members removed in V10 that were present in V9:
data :DocumentData
documentName :string
name :string|null
pack :string|null
-
filePathFields :Object:.<fields.FilePathField:> Overrides: abstract.DataModel#filePathFields A mapping of FilePathField instance which belong to this data model. Type: Object:.<fields.FilePathField:>
New in V10
-
_source :object Overrides: abstract.DataModel#_source The source data object for this DataModel instance. Once constructed, the source object is sealed such that no keys may be added nor removed. Type: object
New in V10
-
(static) hasSystemData :boolean Does this Document definition include a SystemDataField? Type: boolean
New in V10
-
:abstract.DatabaseBackend
changed from :DatabaseBackend (no link in original)
This was likely an oversight, as V9 did have an abstract.DatabaseBackend documentation page
-
Extends abstract.DataModel
Changed from Interfaces schema
-
An extension of the base DataModel which defines a Document. Documents are special in that they are persisted to the database and referenced by _id.
The abstract base class shared by both client and server-side which defines the model for a single document type.
Create a new Document by providing an initial data object.
-
-
foundryvtt.com foundryvtt.com
-
DataModel
Changed from DocumentData
-