Commit graph

10299 commits

Author SHA1 Message Date
jerome
f7631e7397 web service MDL-12886 administration: implement settings for servers (add amf debug option) 2009-03-31 03:29:01 +00:00
skodak
c6e1d6af3f MDL-18540 fixing "extra" memory strings 2009-03-30 17:09:39 +00:00
tjhunt
b810a4d3c9 filters: MDL-17684 Look for the filter name in filter_myfilter.php first.
This makes filters more plugginable, becuase with this lang file name, get_string will look for the filter name in filter/myfilter/lang/en_utf8/filter_myfilter.php.

To do this, there is a new function filter_get_name in filterlib that contains the logic.

Also, a new function filter_get_all_installed to replace the logic for getting all filters that was duplicated in three places.

filter_get_name no longer does such a nice fall-back if the name is missing, to encourage people to supply the right string. The fallback now looks like '[[filtername]] (filter/tidy)'.
2009-03-30 08:33:13 +00:00
gbateson
d6cbe5f546 MDL-18409: new message required for "Remove grade item" form element 2009-03-30 07:09:56 +00:00
tjhunt
bb45fe62c4 get_string: Refactoring, performance improvements, bug fixes and unit tests
MDL-18669 get_string refactored to elimiate duplicate code and make it easier to understand.
MDL-17763 parent language not processed correctly when getting a plugin string.
MDL-16181 more intelligent caching to avoid repeated file_exists checks.
MDL-12434 move values to array keys to improve lookup times.

The main part of the refactoring is to create a singleton string_manager class to encapsulate the cached data and the processing, while breaking the code up into more smaller methods.

Other performance improvements include:
* Cache results of plugin name -> locations to search array.
* Cache parent lang lookup.
* Skip eval if the string does not contain $ \ or %.
* Remove the unnecessary sprintf from the eval.

There is a performance testing script in lib/simpletest/getstringperformancetester.php. For now this script has the old get_string implementation copied and pasted to the end, and renamed to old_get_string to allow for comparitive timings.

There are now some unit tests for get_string in lib/simpletest/teststringmanager.php. I think I have managed to cover most of the tricky cases.
2009-03-30 02:21:27 +00:00
stronk7
0c156fe05e MDL-18552 TeX filter - add string ; merged from 19_STABLE 2009-03-26 21:34:59 +00:00
dongsheng
7022dd3930 "MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile, merged from 1.9" 2009-03-26 02:09:28 +00:00
poltawski
3ad2bfedfc Fix 'progile' typo MDL-18312
merged from MOODLE_19_STABLE
2009-03-25 09:46:12 +00:00
poltawski
db935a79f0 Fix 'drow-down' typo MDL-18320
merged from MOODLE_19_STABLE
2009-03-25 09:43:19 +00:00
poltawski
a786341bb9 documentation/workshop MDL-2605 - bad helpfile link
merged from MOODLE_19_STABLE
2009-03-25 09:33:06 +00:00
tjhunt
c468795ce9 switch roles: MDL-18132 New Role allow switches page finished.
I also set up a reasonable set of default allows, including setting up some sensible allow_overrides, whatever the rant in MDL-15841 says.
2009-03-25 04:20:57 +00:00
tjhunt
91eb445ca0 switch roles: MDL-18132 Convert allow override page to use the shared code. 2009-03-25 02:17:14 +00:00
jerome
71b77297a9 web service MDL-12886 add standard Course web service functions 2009-03-20 06:53:03 +00:00
danmarsden
caab877486 MDL-18564 choice - fix grammar - thanks to Ray Lawrence for the report 2009-03-18 23:04:30 +00:00
exe-cutor
1f4650184e MDL-18597 Merged from STABLE 2009-03-18 13:22:31 +00:00
thepurpleblob
10b4a508ae MDL-18579:
Provide nicer message if 'Stop on error' is selected and errors are found.

Merged from STABLE_19
2009-03-18 11:15:51 +00:00
tjhunt
e0b7cfcb31 quiz settings: MDL-18583 When a quiz has no grade, make it clear that you can only enter one lot of overall feedback.
When the maximum grade for the quiz is 0, we disable all the overall feedback form controls except for the first, and display an explanitory message.
2009-03-18 07:33:56 +00:00
tjhunt
3e10e4292d quiz editing: MDL-17454 first attemtp, and MDL-18554
This is a minimal fix for MDL-18554, I have just added a cancel button and made it work.

The more substantial part of this is MDL-17454, trying to make the quiz editing screen behave appropriately when shuffle questions is on. I am sure Olli will have opinions about this and want to change it further. Rought summary:
* When shufflequestions is off, never restrict manual paging, even if questionsperpage is set.
* When shuffle questions is on:
** Always display the quiz with the defined number of questions per page.
** Remove controls to add things except at the end of the quiz.
** Disable most of the order and paging tab, but still allow the question list to be reordered, in case that helps teachers track which questions they have added.
** Still allow questions to be reordered on the edit tab, but when moving the top question on a page up, reorder with the previous question, rather than moving to the previous page.
* Change the status bar, so that the yellow highlight is reserved for alert information. The more informative stuff is now plain, and moved to under the title. To my mind that associates it more closely with the quiz name. Also it moves Total of grades and Maximum grade closer together.
* JavaScript cleaned up. I learn more about YUI every day.
* Some PHP code clean ups that I forgot to commit separately before making substantive changes.
2009-03-17 09:51:34 +00:00
tjhunt
8c87920373 quiz settings: MDL-17333 drat, missed one lang string. 2009-03-17 07:10:45 +00:00
tjhunt
eeab18f0b3 quiz settings: MDL-17333 Resolve the interrelations between shufflequestions and questionsperpage.
* change the wording of the settings.
* add a repaginate now checkbox (disabled if shuffle is on).
* JavaScript to automatically check the checkbox when qpp changes.
* (remove some irrelevant return value checks now we use exceptions.)
2009-03-17 07:08:33 +00:00
dongsheng
64115dc8b3 "REPOSITORY/MDL-18520, hard-coded block list in file system plugin" 2009-03-17 05:21:03 +00:00
thepurpleblob
c95defa90b MDL-18555:
Adding better handling for unsupported question types.

Merged from STABLE_19
2009-03-16 14:25:30 +00:00
jerome
0d4723ee62 web service MDL-12886 check that a user is a course participant before to add it to a group 2009-03-13 06:51:30 +00:00
dongsheng
fe4126c8c3 "REPOSITORY, SMB/MDL-16907, remove smb plugin from core" 2009-03-13 02:59:45 +00:00
dongsheng
520de3434b "REPOSITORY/MDL-18520, file system plugin added" 2009-03-13 02:54:28 +00:00
Francois Marier
08b2b79b4e Fix drift between CVS and git 2009-03-12 22:21:57 +00:00
thepurpleblob
aa907a94fc MDL-18535:
Adding checks for field name mismatches and "proper" error messages.

Merged from STABLE_19
2009-03-12 14:40:32 +00:00
Francois Marier
200164446a Fix drift with CVS 2009-03-11 13:16:54 +00:00
stronk7
1263a0ff1d MDL-18518 user firstaccess - added suport to display user->firstaccess. Credit goes to Anthony Borrow!
Merged from 19_STABLE
2009-03-11 11:22:55 +00:00
tjhunt
f3a076ded4 MDL-18500 New formslib element type duration for periods of time. 2009-03-11 06:07:33 +00:00
tjhunt
a292125f20 sort lang file. 2009-03-11 05:37:22 +00:00
dongsheng
c19df282a6 "CHAT/MDL-14949, remove mod/chat:talk capability and check chat and readlog capabilities respectively, merged and modified from 1.9" 2009-03-11 02:34:20 +00:00
nicolasconnault
1575b030f8 MDL-14961 Merged from MOODLE_19_STABLE 2009-03-10 14:03:37 +00:00
tjhunt
84e628a027 quiz settings: MDL-18485 Improve quiz settings form
* Reorder form fields to group things more logically.
** and on the corresponding admin page too.

* Set some options to be 'Advanced' by default:
** Apply penalties.
** Each attempt builds on the last.
** Decimal places for question grades.
** The five 'Extra restrictions on attempts' settings. (password, etc.)
* Admins can still change this to suit their institiution at Administration > Plugins > Activity modules > Quiz.
* These new defaults are applied if the admin had not previously set any fields to be advanced.

* Disable some filds when they are not applicable:
** Grading method, if num attempts = 1
** Penaly scheme, if adaptive mode = no
** Each attempt builds of last, if num attempts = 1
** Review after quiz closed options, if no close date.
** Delay between 1st and 2nd attempts, if num attempts = 1
** Delay between later attempts, if num attempts < 3

* Convert quiz.timelimit to be in seconds, for consistency, and ready for the new duration field type (MDL 18500).
** Including ensuring that backup and restore is backwards compatible.

* MDL-5537 New setting, questiondecimalpoints, so, for example, you can show the quiz grade as an integer, but have fractional question grades.
** There is a 'Same as overall decimal points' option, which is the default.

* Improve some field labels.

* Make corresponding changes in the help files.
2009-03-10 08:39:51 +00:00
stronk7
16fcfc720a MDL-18468 Adding admin experimental option to enable split on restore. Thanks for string cleanup, Helen.
Merged from 19_STABLE (more or less)
2009-03-09 23:43:39 +00:00
stronk7
b8f0d7d185 MDL-18468 restore preprocessing (split) - Added $CFG->experimentalsplitrestore option
to enable split of moodle.xml files into upto 19 smaller files for quicker restore.
Merged from 19_STABLE
2009-03-09 23:36:00 +00:00
jerome
6d1c1a6bd9 web service MDL-12886 update web service exception messages 2009-03-09 05:20:16 +00:00
poltawski
6667f9e439 repository/googledocs New repository plugin MDL-16383
Google have now allowed documents to be downloaded via their API
(http://googledataapis.blogspot.com/2009/02/start-downloads.html) so
the google docs repo plugin could be finished.

At the moment i've set the export format hardcoded, hopefully we can allow the
repo api let the user choose later...
2009-03-08 15:53:11 +00:00
dongsheng
60c366e8a6 "REPOSITORY/MDL-13766, improve create function" 2009-03-05 05:40:56 +00:00
dongsheng
a75c78d318 "REPOSITORY/MDL-18354, enabled local and upload repository plugins when upgrading" 2009-03-05 04:40:51 +00:00
nicolasconnault
126d92d3dd MDL-18228 Fixed the language issue and removed the grader report preference 2009-03-04 14:20:45 +00:00
thepurpleblob
c05878500b MDL-18390:
Correctly report unhandled question types and get string from language pack.
2009-03-03 15:36:17 +00:00
mudrd8mz
9dc1fb4dde MDL-14743 offer a link to the English help file. Merged from 1.9 stable 2009-03-02 14:14:19 +00:00
jerome
6fcd56724c web service MDL-12886 documentation: check if "Display debug messages" is set Off 2009-02-27 01:01:34 +00:00
jerome
839bd5a204 web service MDL-12886 documentation: better display, test if web services are enable, display return type 2009-02-26 08:18:28 +00:00
tjhunt
8bc590f5df qtypes help: MDL-5106 Create questiontype help file dynamically 2009-02-26 07:07:40 +00:00
jerome
87171bd8ee web service MDL-12886 add lang strings for web services 2009-02-26 04:22:26 +00:00
dongsheng
57416b8016 "LANG/MDL-17620, add language string, merged from 1.9" 2009-02-26 02:33:04 +00:00
nicolasconnault
203b7e2e7a MDL-18228 Added a grader report preference for using the new fixed student column, and made it always off if $USER->screenreader is set. 2009-02-25 11:09:07 +00:00
tjhunt
a781921fd0 question bank: MDL-16412 Allow admins to enable/disable of each question type 2009-02-25 09:31:49 +00:00