99 Commits

Author SHA1 Message Date
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Petr Skoda
aeb15530b8 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 11:57:52 +00:00
nicolasconnault
ca4b4f8f7c MDL-19813 Upgraded calls to link_to_popup_window() 2009-08-20 13:17:07 +00:00
nicolasconnault
39e3701904 MDL-19813 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:45:47 +00:00
nicolasconnault
825116fb22 MDL-19813 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:16:08 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
tjhunt
eacb462e38 quiz reports: MDL-19205 Improved tooltips on individual question grades. 2009-06-05 06:54:42 +00:00
tjhunt
26da840f6b quiz and qtypes: Regressions from MDL-7308 since '0.0000000' is not empty() in PHP. 2009-03-11 06:36:25 +00:00
tjhunt
96c7d771df quiz: MDL-14926 New capability mod/quiz:reviewmyattempts, separate from mod/quiz:attempt. Merged from MOODLE_19_STABLE. 2009-01-14 07:08:02 +00:00
jamiesensei
2280e147c5 MDL-12418 "Item Analysis shows duplicate responses for Multiple Choice questions with LaTeX in answers" This problem was caused by the formatting of questions in get_actual_responses. Now formatting is done in response_summary rather than get_actual_response which returns an array of unformatted strings.
Have fixed the formatting in responses report and in statistics report to use the correct formatting for the question type.

Created new functions format_responses and format_response. format_responses works on an array and normally just walks through the array calling format_response.
2008-11-28 10:14:19 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
jamiesensei
ef27e74273 MDL-16869 "Exporting leaves <p> </p> in essay responses" added method to flexible_table class format_text that takes the same parameters as format_text the function in weblib. If the table is not in download mode then this formats the text as html. If it is then it strips the tags or does the right thing depending on the download type. Added methods to download classes to tell flexible_table class what should be done with html. 2008-10-14 15:00:26 +00:00
dongsheng
85c30b9c91 "MDL-14129, fix hardcoded print_error" 2008-09-25 01:55:39 +00:00
jamiesensei
8cc901371a MDL-16612 "Response report : Long group names need shortening" 2008-09-24 10:55:55 +00:00
jamiesensei
8968f51fab MDL-16610 "Warnings when a question has a grade of 0" not seeing this issue in HEAD but committing some code to make code for generating html for response cell more robust. 2008-09-24 10:43:45 +00:00
jamiesensei
bfcaf5e684 MDL-16632 "green highlighting should not be applied to grading method in quiz responses report form" Ooops. We do need highlighting on the reponses report. The responses page does have a grade displayed that needs highlighting. I was looking at an ungraded quiz. Need highlighting to highlight grade of graded attempt.
Reverted earlier patch and instead using a different colour for highlighting graded grade. Now using light yellow with a darker yellow border instead of green which is used in reports to highlight the correct answer.
2008-09-24 09:10:43 +00:00
jamiesensei
14133ad913 MDL-16632 "green highlighting should not be applied to grading method in quiz responses report form" 2008-09-23 10:39:12 +00:00
jamiesensei
e84cb61554 MDL-16532 "Can width of column for Essay questions be varied?" Concatenate the answers displayed in all responses in responses report for answers above a certain character count (now set to 150). Also added a link to all responses to display a review of the question response. Both the concatenation and links are only showed in the report on the Moodle site and effects are not exported. 2008-09-23 10:21:32 +00:00
tjhunt
739b07112e MDL-16625 Detection of whether a quiz has grades was broken in HEAD.
1. Fix this by factoring out a quiz_has_grades function.
2. Fix the quiz unit tests.
3. Fix quiz_has_feedback to return false for ungraded quizzes.
4. Fix use of get_records to do record_exists in quiz reports.
2008-09-23 07:18:15 +00:00
jamiesensei
e1d2278b51 MDL-16527 "responses report : use question_get_feedback_class and question_get_feedback_image from questionlib.php instead of custom styles" should not style response or add feedback image if the response is not yet graded. 2008-09-22 09:20:13 +00:00
jamiesensei
74b40fadd5 MDL-16527 "responses report : use question_get_feedback_class and question_get_feedback_image from questionlib.php instead of custom styles" better not make styles dependent on question type. Just use overall styles. 2008-09-16 10:30:06 +00:00
jamiesensei
2ea2c1f57a MDL-16528 "responses report : improve efficiency of sql" moved the querying for state data all into one big query rather than an individual query for each question in each attempt. 2008-09-16 09:50:24 +00:00
jamiesensei
199b946f04 MDL-16527 "responses report : use question_get_feedback_class and question_get_feedback_image from questionlib.php instead of custom styles" 2008-09-16 09:46:57 +00:00
jamiesensei
3b51802063 MDL-16125 "Improvement to Detailled Responses Report : Format of csv export" Fixed missing format string problem when downloading. 2008-09-15 11:39:15 +00:00
jamiesensei
02cd0be02e MDL-16125 "Improvement to Detailed Responses Report - Format of csv export" removing commas from table content which throw the csv export. 2008-09-01 08:24:25 +00:00
tjhunt
337fa7a0ef MDL-16263 - followup - fix notices. 2008-08-29 11:30:16 +00:00
tjhunt
f88fb62c40 MDL-10682 - Ensure quiz and question grades are formatted consisently and correctly. While testing, I also fixed a few XHTML Strrrict errors. 2008-08-15 06:42:38 +00:00
tjhunt
c89f2f13d8 Fix comment. 2008-07-29 13:32:28 +00:00
tjhunt
3f8e526ec1 Fix notices in 'Students' without attempts mode. 2008-07-25 14:05:40 +00:00
jamiesensei
670b895478 MDL-15631 "move detailled responses report out of contrib into main distribution" minor fix to html to align select all / deselect all with table 2008-07-21 12:09:19 +00:00
jamiesensei
e5395a5fd5 MDL-15730 "in detailled report : scale grade to a fraction of the max grade and THEN use it for calculating whether this is a correct / partially correct / or wrong answer" 2008-07-21 11:24:14 +00:00
jamiesensei
3e71541fde MDL-15729 "detailled responses report not showing responses" 2008-07-21 10:27:47 +00:00
jamiesensei
6559096f2c MDL-15728 "quiz_report_load_questions should alias qqi.grade to maxgrade so that questions array has the required fields expected by much of the question code." 2008-07-21 09:06:46 +00:00
jamiesensei
d71226a4ac whitespace fixes 2008-07-21 08:02:37 +00:00
jamiesensei
35bf63526a MDL-15718 "overview report slow for large data sets - print_user_picture queries the db if only provided with a userid" 2008-07-20 14:40:22 +00:00
jamiesensei
162db41723 MDL-15198 "non-standard sql in reportlib.php" using CASE statement to wrap logic in fields list 2008-07-20 14:34:53 +00:00
jamiesensei
7f29a7dbe4 MDL-15631 "move detailled responses report out of contrib into main distribution" adding responses report to main distribution 2008-07-20 14:29:10 +00:00
gustav_delius
5f9ef821df Moved detailed responses report into contrib 2006-03-26 12:02:46 +00:00
mjollnir_
ecb5d875af Updated the comments around the horrible sql construction in the quiz reports for overview & response 2006-03-01 03:00:33 +00:00
mjollnir_
eeaf5ebce1 Ported the rework of the reports to the responses report. PLEASE try not to load all users into memory and then implode it into a string for the sql - just JOIN, it is what the database is good at :( 2006-03-01 02:46:15 +00:00
gustav_delius
4f48fb42af Towards removing reference to quiz module from the question code
Renaming tables:
quiz_questions -> question
quiz_states -> question_states

Renaming functions:
quiz_delete_question -> delete_question
quiz_get_question_options -> get_question_options
quiz_get_states -> get_question_states
quiz_restore_state -> restore_question_state
quiz_save_question_session -> save_question_session
quiz_state_is_graded -> question_state_is_graded
quiz_extract_responses -> question_extract_responses
quiz_regrade_question_in_attempt -> regrade_question_in_attempt
quiz_process_responses -> question_process_responses
quiz_isgradingevent -> question_isgradingevent($event)
quiz_search_for_duplicate_responses -> question_search_for_duplicate_responses
quiz_apply_penalty_and_timelimit -> question_apply_penalty_and_timelimit
quiz_print_question_icon -> print_question_icon
quiz_get_image -> get_question_image
quiz_make_name_prefix -> question_make_name_prefix
quiz_get_id_from_name_prefix -> question_get_id_from_name_prefix
quiz_new_attempt_uniqueid -> question_new_attempt_uniqueid
quiz_get_renderoptions -> question_get_renderoptions
quiz_print_quiz_question -> print_question
quiz_get_question_responses -> get_question_responses
quiz_get_question_actual_response -> get_question_actual_response
quiz_get_question_fraction_grade -> get_question_fraction_grade
quiz_get_default_category -> get_default_question_category


Renaming constants:
QUIZ_EVENT.... -> QUESTION_EVENT....
QUIZ_MAX_NUMBER_ANSWERS -> QUESTION_NUMANS
2006-02-28 09:26:00 +00:00
gustav_delius
f02c6f017e Renamed QUIZ_QTYPES to QTYPES 2006-02-24 13:48:43 +00:00
gustav_delius
03d1753c1c Renamed table quiz_newest_states to question_sessions 2006-02-15 08:38:41 +00:00
stronk7
8867a3bb88 Now Quiz is using the new Excel generation API.
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:43:05 +00:00
moodler
69ef01c00d We don't show unenrolled users in quiz reports normally 2005-11-08 06:52:32 +00:00
gustav_delius
3db6659d2d fix for bug 3953 provided by Jean-Michel 2005-08-26 08:00:19 +00:00
gustav_delius
80ed3fe6b0 New report plug-in contributed by Jean-Michel, see http://moodle.org/mod/forum/discuss.php?d=27730 2005-07-22 11:41:12 +00:00