← Back to team overview

mahara-contributors team mailing list archive

[Bug 1328768] Re: Wishlist: Generic plugin type

 

Okay, I pushed a patch that creates the "module" plugintype. It turns
out that to create a basic plugintype, all you have to do is:

1. Alter the plugin_types() method in mahara.php
2. Create the directory and the lib.php file, with a Plugin subclass.
3. For it to handle dwoo templates you also need to create a Dwoo_Mahara_Template subclass.

... well actually you don't need to do #3 anymore, because of some
refactoring of the Dwoo_Mahara_Template class which I pushed for Bug
1231755.

While I was it I did some cleanup of the base Plugin class as well,
which is why there are two patches.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1328768

Title:
  Wishlist: Generic plugin type

Status in Mahara ePortfolio:
  In Progress

Bug description:
  It would be useful to have a generic plugin type that provides all the
  benefits of every plugin type (i.e. lang strings, templates, cron
  jobs, config screens, config table, etc), while not having any
  specific functionality tied to it. This would be useful for:

  1. Encouraging encapsulation of core code, especially for components
  that are mostly standalone, like the new "chat" functionality.

  2. Third-party distributed code that doesn't match any of the existing
  plugin types. (Although really, we should just have a "local" plugin
  type for these.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1328768/+subscriptions


References