Commit Graph

79 Commits

Author SHA1 Message Date
Ankit Agarwal 0fa21eb715 MDL-57510 questionbank: Add horizontal navigation 2017-03-24 19:07:15 +05:30
Russell Smith 1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Dan Poltawski 4dc29f5e8d MDL-48004 question: prevent notices on import screen
If query params were not passed the page would previously display debug
notices as setting the $requirecourseid param to question_edit_setup()
was buggy.
2015-11-26 15:02:36 +00:00
Ankit Agarwal d197ea4300 MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id() 2012-08-24 11:30:10 +08:00
Petr Skoda b6b5023144 MDL-28701 some more tempdirs updated 2011-09-10 10:55:32 +02:00
Tom Lanyon af9b14446d MDL-28701 Change uses of make_upload_directory(temp) to make_temp_directory(). 2011-09-10 10:43:49 +02:00
Tim Hunt 4bf1be3596 MDL-28437 Question bank pages should all use General type: admin. 2011-07-25 08:50:06 +01:00
Tim Hunt f19ed874ee MDL-26199 further changes needed to make the question bank navigation behave. 2011-06-23 07:18:49 +01:00
Tim Hunt 9c197f4445 MDL-20636 Fix some more codechecker issues. 2011-05-14 22:53:25 +01:00
Tim Hunt 2daffca554 MDL-20636 Fix 30 TODOs 2011-02-24 17:47:51 +00:00
Tim Hunt 5e8a85aa64 MDL-20636 Massively reduce the number of references to quiz in the question code.
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
2011-02-23 18:53:50 +00:00
Tim Hunt f7c1dfaf79 MDL-20636 Finish off converting question import. 2011-02-21 17:29:18 +00:00
Dongsheng Cai cde2709a88 MDL-15573, question export rewrite 2010-11-05 06:34:00 +00:00
Petr Skoda 81457bef51 MDL-23984 no coursefile dirs exist any more 2010-08-29 10:42:45 +00:00
David Mudrak 5fcefc9728 MDL-21695 question: replaced help files with new help strings
AMOS BEGIN
 HLP question/categoryparent.html,[parentcategory_help,core_question]
 HLP question/categories.html,[editcategories_help,core_question]
 HLP quiz/export.html,[exportquestions_help,core_question]
 HLP quiz/exportcategory.html,[exportcategory_help,core_question]
 HLP quiz/exportcategory.html,[exportcategory_help,core_question]
 HLP quiz/importcategory.html,[importcategory_help,core_question]
 HLP quiz/matchgrades.html,[matchgrades_help,core_question]
 HLP quiz/quiz/stoponerror.html,[stoponerror_help,core_question]
 HLP qtype_multichoice/multichoiceshuffle.html,[shuffleanswers_help,qtype_multichoice]
 HLP quiz/matchshuffle.html,[shuffle_help,qtype_match]
 HLP quiz/generalfeedback.html,[generalfeedback_help,mod_quiz]
AMOS END
2010-08-02 21:24:32 +00:00
Petr Skoda f728d49b00 MDL-19380 uploadlib cleanup before readding of antivirus integration 2010-07-14 08:40:48 +00:00
Dongsheng Cai a1eb90c0eb MDL-22574, fixed question import button 2010-06-08 03:04:39 +00:00
Rossiani Wijaya 0f56fde284 MDL-20447 - bulk upload: add page heading 2010-06-02 06:13:27 +00:00
Sam Hemelryk 56ed242b51 navigation MDL-20276 Fixed up the navigation for the quiz module and question section as per Tim's recommendation.
* Routine navigation through the quiz and question modules
* Fixed navbar through quiz and questions
* Pages headers added throughout
* Added method to turn a navigation node into a tabs array suitable for use with print tabs
2010-05-21 03:15:48 +00:00
Tim Hunt 453b28d818 Fix $PAGE->set_url initialisation order. 2010-04-12 13:31:42 +00:00
Petr Skoda 8afba50b84 MDL-21233 get_query_string() is definitely not recommended in new code, instead use moodle_url constructors with proper parameters; removed some more legacy url concatenation operations; realized out_action is not needed often, because we shoudl pass arounf moodle_url instances instead of old url strings 2010-01-17 10:54:13 +00:00
Petr Skoda 4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
Sam Hemelryk d8ae33a95c question MDL-21169 removed update_module_button calls from question these are now added by the module extending the navigation if there is a module specified for question pages.
Also fixed bug in moodle_url object coding_error to coding_exception
2009-12-23 02:45:22 +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
samhemelryk 5c0daafc3d question MDL-19820 Added set_url calls with pre-generated var 2009-10-16 03:22:20 +00:00
samhemelryk 1d58b567be question MDL-19820 Replaced deprecated functions 2009-09-25 04:16:27 +00:00
samhemelryk d412354cc6 question MDL-19820 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 02:36:39 +00:00
nicolasconnault fef8f84e4b MDL-19822 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:19:00 +00:00
nicolasconnault 9b59580b36 MDL-19820 Converted all print_footer() calls 2009-08-06 14:19:16 +00:00
thepurpleblob 73b7b195ed MDL-16198
Blackboard V6+ can now handle the .dat file directly as an option to the .zip file
Some changes needed to recover the original filename.

Merged from STABLE_19
2008-08-28 13:49:25 +00:00
dongsheng bd8ee7c1c4 "MDL-14129, fix print_error" 2008-06-15 12:02:43 +00:00
dongsheng fd9f6cd330 "MDL-14129, fix print_error" 2008-06-15 12:02:43 +00:00
nicolasconnault f34488b2e6 MDL-15102 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing. 2008-06-06 14:43:15 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
jamiesensei 0cbddd850b MDL-10857 broken link in navlinks for question bank pointing to mod/modname/view.php with cmid param instead of id param 2007-08-15 11:36:01 +00:00
thepurpleblob 83601351d7 Should be $COURSE not $course 2007-08-13 13:26:16 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
thepurpleblob 7d43178bf2 This new moodle_url thing (which is really confusing by the way)
had broken the page. The selected category was being ignored.
Fixed, but possibly not in the most elegant way!!
2007-07-26 13:43:25 +00:00
thepurpleblob a783cec297 Possible error passing course id from page to page resolved 2007-07-26 12:38:28 +00:00
thepurpleblob 301317e987 Whoops - parameters need to match category check and display of course. 2007-07-26 11:04:28 +00:00
thepurpleblob 9782846235 MDL-9123:
Check that the selected category is allowed.

Merged from STABLE_18
2007-07-26 10:56:13 +00:00
mattc-catalyst 3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
jamiesensei f86c2c84b1 fixed error in import.php category object fetching logic 2007-05-07 07:08:41 +00:00
jamiesensei 7bc26c8f6d changes to pass category id from page to page in question bank editing. 2007-05-07 04:55:55 +00:00
jamiesensei b72ff47685 moved question sort order and paging params to be passed from page to page as get params instead of being saved in session var. 2007-05-03 10:10:01 +00:00
jamiesensei 71e0eda8f7 standardizing params for edit question page. All pages now use courseid instead of course or id. 2007-04-30 06:48:57 +00:00
tjhunt d187f66046 MDL-8946 - Fix a regression that broke question export. Also, partially clean up the way that question bank navigation tabs are printed, so the code is not duplicated in the quiz. Some other miscellaneous code cleaning too. Merged from MOODLE_18_STABLE. 2007-03-21 10:41:28 +00:00
tjhunt 4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
thepurpleblob f37015613c MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 13:03:57 +00:00
tjhunt b030a630c0 MDL-8764 - In menus, show question categories from this course first, then published categories from other courses. Merged from MOODLE_18_STABLE. 2007-03-05 18:05:51 +00:00