Class: ModelManager

mmir. ModelManager

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

This function gets the model by name.
Name Type Description
modelName String Name of the model which should be returned
Returns:
Type Description
Object The model if found, null else
This function returns all loaded models.
Returns:
Type Description
Array.<String> all loaded model names