|
[
Permalink
| « Hide
]
Penny Leach added a comment - 10/Sep/08 06:45 PM
adding watchers spam ping
Penny Leach made changes - 10/Sep/08 06:45 PM
Tim Hunt made changes - 11/Sep/08 10:04 AM
Tim Hunt made changes - 18/Sep/08 09:15 PM
Just linking this to MDL-16487 - which is a bug I created mentioning that the plugins check during install/upgrade is outdated. I'm pretty sure we'd need to improve that page a bit to make it more useful with all our plugin types though!
Dan Poltawski made changes - 07/Jan/09 10:45 PM
Eloy Lafuente (stronk7) made changes - 16/Jun/09 06:16 PM
Note get_db_directories(
Ciao Note, get_plugin_types() uses different prefixes than string_manager for a few plugin types (e.g. mod/quiz/report) which is potentially confusing. Also, the lists in get_plugin_types() and string_manager include different types. This worries me.
I also think it should be moved out of adminlib.php, since It is probably needed in places where you don't need the rest of adminlib.php. I will probably move it to moodlelib.php if not one objects. mod/quiz/plugin is not a good example - it is hardcoded "module subplugin" in one specific module, hopefully similar uses in resource and asignment will be eliminated soon.
anyway I agree this code needs a bit of cleanup and since it is me who introduced it working on solution now...
Tim Hunt made changes - 16/Jun/09 10:45 PM
key changes are:
This code is not tested much,going to test it more today and fix regressions
Petr Skoda made changes - 17/Jun/09 02:54 PM
More info retated to local customisations at http://moodle.org/mod/forum/discuss.php?d=126017
Anthony Borrow made changes - 18/Jun/09 11:40 AM
Code review comments from looking at the patch
'mod_forum' is not consistent with how get_string has always worked.
... OK, am up to line 815 of the patch, and need to take a break. More later.
hmm, I think we could standardize the "component name" - moodle, mod_forum, block_something (we could add automatic conversion of forum to mod_forum for BC reasons)
so instead of get_plugin_directory($type, $plugin, $fullpath) would be get_component_directory($component, $fullpath); get_plugin_types($fullpaths=true) hmm, we could have both - get_plugin_directory() and get_component_directory() which accepts 'moodle' and unittest hooks as extra features
In summary, this is brillant. Please get it finishded, tested, and checked in soon Of the above comments, the only one I feel strongly about is the javascript-mod.php one. Thank you.
1. Ah, so now get_list_of_plugins is needed, but has a confusing name. Please make sure the PHPdoc comment explains.
2. Martin suggested local/readme.txt. Seems sensible to me. You did not comment on the javascript-mod.php bit. I hope that means you agree. 1. sure - doing
2. adding local might cause problems in CVS updates, could it? I intentionally did not put anything into "/local/", I guess we should ask GIT people too javascript - sure, I trust you completely :-D
ok, great, going to add it there, we can revert it anytime later if really needed, thanks
I prefer when all up-to-date info is in cvs including this local customisation info
Petr Skoda committed 60 files to 'Moodle CVS' - 19/Jun/09 10:25 PM
committed into cvs, thanks a lot everybody
please test and report any problems thanks again
Petr Skoda made changes - 19/Jun/09 10:28 PM
tjhunt committed 2 files to 'Moodle CVS' - 22/Jun/09 02:03 PM
Petr, this doesn't seem to work with the assignment module.
In mod/assignment/lib.php line 3140, you use $assignmenttypes = get_plugin_list('assignment'); This always returns an empty array, no matter what is in mod/assignment/type Delving a bit deeper, in lib/moodlelib.php lines 6841-6847, we see that there is possible way that get_plugin_list('assignment') could return anything, no matter was exists in mod/assignment.
Nicolas Connault made changes - 25/Jun/09 09:11 AM
Nicolas Connault committed 1 file to 'Moodle CVS' - 25/Jun/09 09:32 AM
testin get_plugin_list('assignment'); ...
Petr Skoda committed 1 file to 'Moodle CVS' - 25/Jun/09 05:14 PM
Petr Skoda committed 1 file to 'Moodle CVS' - 26/Jun/09 05:02 PM
Sam Hemelryk committed 1 file to 'Moodle CVS' - 30/Jun/09 09:41 AM
Petr Skoda committed 2 files to 'Moodle CVS' - 02/Jul/09 11:01 PM
Petr Skoda committed 2 files to 'Moodle CVS' - 02/Jul/09 11:02 PM
Petr Skoda committed 2 files to 'Moodle CVS' - 02/Jul/09 11:11 PM
Petr Skoda committed 1 file to 'Moodle CVS' - 04/Jul/09 05:48 PM
Nicolas Connault committed 1 file to 'Moodle CVS' - 06/Jul/09 02:56 PM
tjhunt committed 5 files to 'Moodle CVS' - 07/Jul/09 01:05 PM
tjhunt committed 1 file to 'Moodle CVS' - 22/Jul/09 05:20 PM
tjhunt committed 1 file to 'Moodle CVS' - 24/Jul/09 12:05 PM
In relation to MDL-20152, I wonder if we should add something like gformat for glossary formats to the get_plugin_types function. I am thinking along the lines of:
'gformat' => 'mod/glossary/formats', Peace - Anthony
Anthony Borrow made changes - 29/Aug/09 02:57 PM
Anthony - I would suggest using "glossaryformat" plugin type. What would you guess a "wgrading" means? IMO "workshopgrading" is better (self-explanation), even longer.
moodle_needs_upgrading() ignores subplugin requirements. IMO the subplugin's version.php should specify the minimal (and optionally maximal) supported parent plugin version. So the logic is: subplugin declares the required plugin's version, the plugin declares the required Moodle version.
David Mudrak made changes - 31/Aug/09 11:19 PM
David - I agree I like glossary_format better but was trying to be 'consistent' with qformat which I am not a fan of. Generally speaking we do a very good job of keeping the code readable. I thought gformat was closest to qformat (question) but I believe I mentioned this previously to someone (perhaps Tim) and was told that it would be difficult to change. In any case, I just wanted to make a plug for making the glossary formats as plugin friendly as possible. Peace - Anthony
Anthony - use glossaryformat with no underscore. The underscore is used as a separator between plugintype_pluginname. So for example mod/glossary/formats/plain can be refered as glossaryformat_plain.
David - Yep, I see why glossaryformat works better - good catch. Thanks and congrats on working with HQ! Peace - Anthony
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||