Commit graph

61113 commits

Author SHA1 Message Date
Dan Poltawski
f4f0a085d8 Merge branch 'MDL-39011_master' of github.com:totara/openbadges 2013-04-12 10:45:00 +08:00
Dan Poltawski
f4686f5df9 Merge branch 'MDL-39049_master' of github.com:totara/openbadges 2013-04-12 10:30:10 +08:00
Dan Poltawski
e8c7506a45 Merge branch 'MDL-37537' of git://github.com/srynot4sale/moodle 2013-04-12 10:26:05 +08:00
Dan Poltawski
481c1c363a Merge branch 'MDL-38637-master' of github.com:StudiUM/moodle 2013-04-12 10:08:45 +08:00
David Mudrák
3ca1b54642 MDL-39087 Use progress_trace class to display uninstallation progress
This is much better API than using the array passed by reference. At the
moment, it is pretty hacky as it abuses text_progress_trace to output
raw HTML echoed by uninstall_plugin() but that will be improved later
while moving the logic out of that function into the plugin_manager.
2013-04-12 04:02:28 +02:00
Dan Poltawski
315e2ad133 Merge branch 'integration_MDL-38997' of github.com:totara/moodle 2013-04-12 09:59:49 +08:00
David Mudrák
c2d2001a14 MDL-39087 Improve the Plugins overview renderer
As suggested by Tim Hunt during the peer-review, rendering methods
should not set properties of the page they are producing HTML code for.
Additionally, the page now uses correct check that the uninstalling can
happen.
2013-04-12 03:32:35 +02:00
David Mudrák
ccc6c15fd2 MDL-39087 Fix plugin_manager::can_uninstall_plugin() implementation
There was a false positive result for subplugin required by other
subplugin. See the unit test.
2013-04-12 03:23:47 +02:00
David Mudrák
54d7589397 MDL-39087 Improve the Plugins overview table layout
This patch returns the layout of the Uninstall | Settings links to two
columns. There is no space saved on the screen by using the single
column and two columns align better. The reasoning for using single
column was that there would be multiple links in the 'Actions' column
but that does not seem to happen anytime soon.
2013-04-12 01:44:35 +02:00
David Mudrák
73658371eb MDL-39087 Simplify get_uninstall_url() interpretation
The get_uninstall_url() method of all subclasses of plugininfo_base
class is now expected to always return moodle_url. Subclasses can use
the new method is_uninstall_allowed() to control the availability of the
'Uninstall' link at the Plugins overview page (previously they would do
it by get_uninstall_url() returning null). By default, URL to a new
general plugin uninstall tool is returned. Unless the plugin type needs
extra steps that can't be handled by plugininfo_xxx::uninstall() method
or xmldb_xxx_uninstall() function, this default URL should satisfy all
plugin types.

The overall logic is implemented in plugin_manager::can_install_plugin()
that respects the plugininfo class decision and vetoes it in certain
cases (typically when plugin or its subplugin is required by some other
plugin).
2013-04-12 01:44:35 +02:00
David Mudrák
d7d48b4091 MDL-39087 Add new helper methods to the plugin_manager API
These are mainly intended for callers that had to iterate over
get_plugins() result manually.
2013-04-12 01:44:34 +02:00
David Mudrák
c6f4c88ffb MDL-39087 Offer deleting for standard plugins if possible, too
The plugin_manager::is_plugin_folder_removable() method should do just
one thing and do it well. Also, as was raised during the peer-review,
there should not be technical differences between standard plugins and
add-ons.
2013-04-12 01:42:58 +02:00
David Mudrák
86a862cdc2 MDL-39087 Add missing unit tests for the plugin_manager
This patch improves and adds unit tests for the plugin_manager class.
These unit tests cover the existing functionalities. Tests for the
new features related directly with MDL-38259 will be added in a separate
commit (to make it clear what's related to it).
2013-04-12 01:42:58 +02:00
David Mudrák
7a46a55d00 MDL-39087 Fix plugin_manager::plugin_name() implementation
This is not directly related to the issue. However, it turned out that
if this method was called on plugin_manager without loaded plugins, it
would throw an error. This new implementation uses cleaner access to the
plugininfo subclass.
2013-04-12 01:42:58 +02:00
David Mudrák
bfaed43214 MDL-39087 Fix missing cronlib inclusion in file_storage::cron()
This is not actually related to MDL-38259 but it was discovered while
running unit tests for file_storage. When running the tests for this
class separately, the cronlib.php was not included (it is included
when this method is normally called during cron execution).
2013-04-12 01:42:58 +02:00
David Mudrák
546b886416 MDL-39087 Delete all component files in uninstall_plugin() 2013-04-12 01:42:58 +02:00
David Mudrák
5718a12313 MDL-39087 Purge all caches at the end of uninstall_plugin()
This is necessary now as many plugins management related features
started to use MUC intensively recently. During the development of this
issue, we realized that the plugin was still considered as installed if
caches were not purged.
2013-04-12 01:42:58 +02:00
David Mudrák
436d94478d MDL-39087 Implement a common interface for uninstalling general plugin
Plugins may use this general tool for uninstallation and eventually
removal of the deployed source code. At the moment, this is implemented
as a wrapper for the core function uninstall_plugin() with an extra hook
in the relevant plugin info subclass.

For non-standard add-ons, the tool can remove the deployed plugin source
code as well, if the web server has required write permissions. Ideally,
all add-ons installed via the new tool_installaddon should be removable
via the web interface as well.
2013-04-12 01:42:58 +02:00
David Mudrák
0b733dd9e2 MDL-39087 Clarify plugininfo_base::get_uninstall_url() return value
The method now returns null if there should be no 'Uninstall' link at
the Plugins management screen. For non-standard add-ons the method now
returns URL to a general uninstall tool.

Plugin info subclasses can still override the method to provide URL to
their own UI for uninstalling. If the plugin type wants to use the
general uninstall tool also for standard plugins, it should override
this method and explicitly return $this->get_default_uninstall_url().
Otherwise, the 'Uninstall' link will be provided for add-ons only.
2013-04-12 01:42:58 +02:00
Matteo Scaramuccia
5ecd13bc66 MDL-38678 SCORM: Runtime Environment (RTE) checks not required in case of SCO Assets 2013-04-11 22:44:29 +02:00
Jean-Philippe Gaudreau
d1f167aa56 MDL-38637 CAS Authentication: Undefined index: QUERY_STRING when executing cron 2013-04-11 10:56:21 -04:00
Eloy Lafuente (stronk7)
2f587fb334 Merge branch 'MDL-38828_master' of git://github.com/dmonllao/moodle 2013-04-11 16:44:47 +02:00
Eloy Lafuente (stronk7)
2087fa6223 Merge branch 'MDL-38961_master' of git://github.com/dmonllao/moodle 2013-04-11 16:32:32 +02:00
Eloy Lafuente (stronk7)
bd3d4c9e8d Merge branch 'MDL-38963_master' of git://github.com/dmonllao/moodle 2013-04-11 16:30:08 +02:00
Jean-Michel Vedrine
c80fb6d95e MDL-38880 Imported Cloze questions lose embedded images or other media 2013-04-11 16:22:20 +02:00
Eloy Lafuente (stronk7)
33fcbe89d4 Merge branch 'MDL-38940_master' of git://github.com/dmonllao/moodle 2013-04-11 16:11:40 +02:00
Eloy Lafuente (stronk7)
c51e1fa37e Merge branch 'MDL-38957_master' of git://github.com/dmonllao/moodle 2013-04-11 15:56:45 +02:00
Eloy Lafuente (stronk7)
e9bcf8019b Merge branch 'MDL-38958_master' of git://github.com/dmonllao/moodle 2013-04-11 15:52:53 +02:00
Marina Glancy
a610d873c6 MDL-39064 Course listings CSS ported from base to bootstrap theme 2013-04-11 23:18:10 +10:00
Marina Glancy
73fe7470d1 MDL-39064 changed sequence of directives to separate course content and course listings 2013-04-11 23:18:10 +10:00
Jayesh Anandani
6b7a020b23 MDL-39029 quiz password: autofocus feature added 2013-04-11 17:26:58 +05:30
Jayesh Anandani
620233b8fb MDL-39054 quiz statistics: move hard-coded text to lang file 2013-04-11 16:41:43 +05:30
Eloy Lafuente (stronk7)
b3661ab272 on demand release 2.5beta+ 2013-04-11 12:38:46 +02:00
Eloy Lafuente (stronk7)
f6cec2fd62 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-11 12:32:32 +02:00
David Monllao
9c5cf72c46 MDL-38961 behat: New test
According to MDLQA-110, edited wiki
pages may be previewed before saving.
2013-04-11 17:29:18 +08:00
David Monllao
07fd6882b8 MDL-38963 behat: New test
According to MDLQA-113, a teacher can
set a wiki to be collaborative or
individual.
2013-04-11 17:28:24 +08:00
David Monllao
58c2fae525 MDL-38940 behat: New test
According to MDLQA-32, glossary entries
can be searched or browsed by alphabet,
category, date or author.
2013-04-11 17:26:53 +08:00
David Monllao
d72a183645 MDL-38957 behat: New test
According to MDLQA-94, a teacher can
sort questions in the question bank.
2013-04-11 17:24:12 +08:00
David Monllao
a97d274c92 MDL-38958 behat: New test
According to MDLQA-91, a teacher can
edit questions in the question bank.
2013-04-11 17:23:08 +08:00
Dan Poltawski
a96eb3a55f Revert "MDL-38254 Assignment Module: add avaialble message to all assignment types"
This reverts commit 2612e21bd4.
2013-04-11 16:52:25 +08:00
Kordan
dfa98f1a22 MDL-39080 theme_formal_white: modified "Main menu" block look to resemble the "Navigation" one 2013-04-11 10:52:13 +02:00
David Monllao
1303eb290f MDL-38958 behat: Step definitions to interact with popup windows 2013-04-11 13:58:11 +08:00
David Monllao
336b5b5914 MDL-38958 behat: Step definition to add questions 2013-04-11 11:47:03 +08:00
David Monllao
f7040fef91 MDL-38940 behat: Step definition to create glossary categories 2013-04-11 10:46:11 +08:00
Dan Poltawski
3ee53622bf Merge branch 'm25_MDL-39061_Trivial_incorrect_MD' of https://github.com/scara/moodle 2013-04-11 10:19:10 +08:00
Eloy Lafuente (stronk7)
e592ccd860 Merge branch 'MDL-38525-master' of https://github.com/damyon/moodle 2013-04-11 00:56:45 +02:00
Eloy Lafuente (stronk7)
2e140437b1 Merge branch 'MDL-38937_master' of git://github.com/dmonllao/moodle 2013-04-11 00:43:59 +02:00
Eloy Lafuente (stronk7)
2cef0f7c33 Merge branch 'MDL-38939_master' of git://github.com/dmonllao/moodle 2013-04-11 00:32:40 +02:00
Eloy Lafuente (stronk7)
a7ed1eca08 Merge branch 'MDL-38970_master' of git://github.com/dmonllao/moodle 2013-04-11 00:22:42 +02:00
Eloy Lafuente (stronk7)
b812305ef6 Merge branch 'w15_MDL-38989_m25_ttfinal' of git://github.com/skodak/moodle 2013-04-10 15:45:16 +02:00