Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.12.0-b1
-
Component/s: None
-
Labels:None
-
Epic Link:
Description
module_types
- id INT(10) UNSIGNED NOT NULL AUTOINCREMENT
- name VARCHAR(64) NOT NULL
- UNIQUE INDEX
Create a migration to add two module types 'generic' and 'registrar' in that order
Create a migration to add new column to the modules table type_id INT(10) UNSIGNED NOT NULL DEFAULT 1
Create a model ModuleTypes
- Add the regular CRUD methods
- Create getDefaultTypes to return list of default module types including 'generic' and 'registrar'
Update the ModuleManager class to add a type filter to the getAll() and getInstalled() methods. There is probably some abstraction that can be done between get, getAll, and getInstalled
Update the Module parent class to add a getType() method the returns the 'type' config value if set (similar to getName()) or 'generic' by default