Class: ModelManager

mmir. ModelManager

new mmir.ModelManager()

A class for managing the models of the application (MVC-Component).
It's purpose is to load the models automatically. This "class" is a singleton - so that only one instance is in use.
TODO add example for usage (models as "class" / models as "singleton")

Methods

get(modelName){Object}

This function gets the model by name.
Name Type Description
modelName String Name of the model which should be returned
Returns:
model if found, null else

getModelNames(){Array.<String>}

This function returns all loaded models.
Returns:
loaded model names