Skip to main content
Version: 2.9

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

ParameterTypeDescription
tagInstanceOrTagtag of the DataType
objecttypeof CloudObjectCloudObject constructor

Returns

void