Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin CRUD #43

Open
4 tasks
aydreeihn opened this issue Jan 26, 2023 · 2 comments
Open
4 tasks

Plugin CRUD #43

aydreeihn opened this issue Jan 26, 2023 · 2 comments
Labels
infrastructure Projects with tasks that don't have to have full UI to work on Todo

Comments

@aydreeihn
Copy link
Collaborator

Feature Summary

General CRUD functionality to manage Plugins.

  • Delete
  • Enable
  • Disable
  • Update

We will need to determine how/where we will add Plugins in a later project. In the meantime, we can create a dummy Plugin in the database to write the backend to do the remaining functionality.

@aydreeihn aydreeihn added the Todo label Jan 26, 2023
@aydreeihn aydreeihn moved this to Todo in osTicket 2.0 Jan 26, 2023
@aydreeihn aydreeihn added the infrastructure Projects with tasks that don't have to have full UI to work on label Jan 30, 2023
@DaveWP
Copy link

DaveWP commented Dec 5, 2024

  1. As part of this functionality, will it be possible to run named functions within a plugin for CRUD changes?
  2. How will this CRUD functionality fit with the existing Plugin Instance CRUD features?
  3. Will it be possible to have a plugin with just a single Instance, effectively automatically added when the Plugin is first enabled?

@DaveWP
Copy link

DaveWP commented Dec 23, 2024

Within plugins.php there are several points where an object of class Plugin is called rather than an instance of the actual plugin. Is it possible to call the actual plugin implementation, eg myPlugin. This would provide the capability for plugins to include their own functionality, either before or after the standard functionality by calling the parent equivalent method.

As a use case, I am working on a plugin which will need to create additional database tables so I would want to bind the creation of additional tables on install, and remove the tables when the plugin is "deleted".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Projects with tasks that don't have to have full UI to work on Todo
Projects
Status: Todo
Development

No branches or pull requests

2 participants