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

Add plugins feature #29

Open
ywarnier opened this issue May 15, 2014 · 0 comments
Open

Add plugins feature #29

ywarnier opened this issue May 15, 2014 · 0 comments
Assignees

Comments

@ywarnier
Copy link
Member

There are cases where a customer asks for a very specific feature and the feature does not work with the pristine state of Chamilo (a Chamilo without code changes).

To allow us to work properly in these cases, Chash requires a "plugins" feature that would not require a change in chash.php (usually, you have to add new commands there).
The way I see it, we should have something like follows:

  • one /plugin directory that is actually similar to the /src/Chash directory and that contains a Command/ directory (but that could later on include other dirs like in /src/Chash)
  • one file at the root of /plugin: /plugin/load.php that would scan the directories and generate the required list of plugin commands
  • one change in chash.php to include this load.php file dynamically (can this be done with PHAR?)
  • ideally, some option (and command) to configure chash to load that /plugin directory for any specific location on disk (so that we can use another set of plugins for another portal on the same server, for example, or simply store the plugins in a different location?)
  • some documentation here in the README.md that explains how to create a new plugin
@ywarnier ywarnier added this to the Chamilo LMS 1.9.8 milestone May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants