Project

General

Profile

Actions

Feature proposal #6728

closed

Implement API library

Added by krileon over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
11 August 2017
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

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

Actions #2

Updated by krileon over 7 years ago

  • % Done changed from 0 to 10
Actions #3

Updated by krileon over 7 years ago

  • % Done changed from 10 to 30
Actions #4

Updated by krileon over 7 years ago

  • % Done changed from 30 to 40
Actions #5

Updated by krileon over 7 years ago

  • % Done changed from 40 to 60
Actions #6

Updated by krileon over 7 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 60 to 100
Actions #7

Updated by krileon about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF