Feature proposal #6728
closedImplement API library
Description
Move modal usages to libraries and call the libraries directly using autoloading to improve performance. This also means most if not all the code in the main plugin PHP file can be moved to library files to improve performance further. Example library structure.
/Action/CodeAction.php (action specific modal extends Action.php)
/Action/Action.php (modal base class; can probably move condition code to here)
/Action/ActionInterface.php (defines action base structure)
/Trigger/ActionTrigger.php (cbautoactionsPlugin code)
/Table/AutoActionTable.php (table class for auto action db table)
/CBAutoActions.php (main plugin class with utility functions)
Implement a function for AutoActionTable class to directly execute an auto action instead of using cbautoactionsClass::triggerAction.
Updated by krileon over 7 years ago
The XML for an action should go into special views that are just loaded automatically when creating or editing an action similar to now. Something like the below should be fine.
/xml/actions/action.TYPE.xml
Updated by krileon over 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 60 to 100