register()
function register(tag, object): void
Register the class constructor as the class associated to the specified tag.
This creates the link between a class and an DataType in the database. Once this link is created, all the instances of the DataType (model) are instantiated as JS objects using the specified class (see CloudObject.get)
Parameters
Parameter | Type | Description |
---|---|---|
tag | InstanceOrTag | tag of the DataType |
object | typeof CloudObject | CloudObject constructor |
Returns
void