Modify ↓
Ticket #784 (closed enhancement: fixed)
Parametirase models
| Reported by: | ejhernandez@… | Owned by: | ejhernandez@… |
|---|---|---|---|
| Milestone: | 0.11 | Component: | base |
| Severity: | normal | Keywords: | parameter MVC |
| Cc: |
Description
eBox models require to have parameters at the time of the model creation or whenever the developers want to, using a setParameters-like method.
This feature is required when some models share the description but differ among them in a certain parameter. For example, RuleTable model at traffic shaping module have as many instances as interfaces eBox has configured.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Done at #753 (the time also set there).
The chosen option has been set a method called index and its printable version printableIndex which is used to distinguished model instances each other. The methods contextName and printableContextName returns the following information: /moduleName/modelName[/index] if any. The moduleName is the eBox module which instanciated the model itself.