Jun Pataleta
bc78914b30
MDL-77690 mod_lesson: Lesson accessibility fixes
...
* Set the heading levels of lesson pages appropriately to avoid skipped
heading issues.
* Add appropriate labels for tertiary navigation select menus.
2023-06-30 17:00:38 +08:00
Sujith Haridasan
73d604369d
MDL-71062 core: Step 1 deprecation of print_error function
2022-07-13 08:20:54 +05:30
Ilya Tregubov
9e5ffa2229
Merge branch 'MDL-72095-master-3' of https://github.com/bmbrands/moodle
2021-12-13 18:46:16 +02:00
Peter Dias
0705928b4a
MDL-72413 lesson: Use the common module for setting the header
2021-12-13 09:49:34 +08:00
Bas Brands
946fd915e2
MDL-72095 theme_boost: max width for activity pages
2021-12-08 17:29:49 +01:00
Andrew Nicols
a32a52b0a6
MDL-68265 mod_lesson: Switch question import to request dir
2020-03-30 08:14:46 +08:00
Sam Hemelryk
9b24f68bde
MDL-41177 mod_lesson: unified @package use
2014-02-16 11:51:23 +13:00
Rossiani Wijaya
8c6ca6961a
MDL-42339 - removed double formatting for set_title() and set_heading()
2014-02-05 14:47:23 +08:00
Sam Hemelryk
c0382dd012
Merge branch 'MDL-40735_lesson' of https://github.com/andyjdavis/moodle
2013-09-10 15:44:49 +12:00
Andrew Davis
974beea10a
MDL-40735 mod_lesson: fixed up a header and stripped out hardcoded formatting
2013-09-02 12:38:20 +07:00
Jean-Michel Vedrine
efbe07b03c
MDL-38505 Permit lesson to import images in question text
2013-08-23 07:54:57 +02:00
Damyon Wiese
74df2951d1
Revert "MDL-39876 Change get_record('course') calls to get_course"
...
This reverts commit ab7632b74c .
2013-08-21 13:42:30 +08:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Dan Poltawski
0e35ba6ffc
MDL-36357 cleanup - remove double semicolons
2012-11-15 09:51:26 +08:00
Ankit Agarwal
5918e3715e
MDL-34467 lesson: Repalce all instances of get_context_instanc() with respective context_XXX::instance()
2012-07-27 13:26:35 +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
Rajesh Taneja
b89bf55f84
MDL-27964 lesson - Old file picker is replaced with new filepicker, currently all imported questions will be saved in /temp/questionimport/ where questionbank files are saved.
2011-06-28 12:10:56 +08:00
Petr Skoda
cc3dbaaa30
MDL-21249 improved php docs package+subpackage info in mod/lesson
2010-07-25 10:54:39 +00:00
Petr Skoda
b3daa92632
fixed coding style to match other modules
2010-07-25 09:30:09 +00:00
David Mudrak
4c80a990fa
MDL-21695 Lesson module now uses new help strings
...
AMOS BEGIN
HLP lesson/activitylink.html,[activitylink_help,mod_lesson]
HLP lesson/custom.html,[customscoring_help,mod_lesson]
HLP lesson/dependency.html,[dependencyon_help,mod_lesson]
HLP lesson/displayleft.html,[displayleftmenu_help,mod_lesson]
HLP lesson/displayleftif.html,[displayleftif_help,mod_lesson]
HLP lesson/feedback.html,[displaydefaultfeedback_help,mod_lesson]
HLP lesson/grade.html,[maxgrade_help,mod_lesson]
HLP lesson/handlingofretakes.html,[handlingofretakes_help,mod_lesson]
HLP lesson/import.html,[importquestions_help,mod_lesson]
HLP lesson/importppt.html,[importppt_help,mod_lesson]
HLP lesson/jumpto.html,[jumps_help,mod_lesson]
HLP lesson/maxanswers.html,[maximumnumberofanswersbranches_help,mod_lesson]
HLP lesson/maxattempts.html,[maximumnumberofattempts_help,mod_lesson]
HLP lesson/maxpages.html,[numberofpagestoshow_help,mod_lesson]
HLP lesson/mediafile.html,[mediafile_help,mod_lesson]
HLP lesson/minquestions.html,[minimumnumberofquestions_help,mod_lesson]
HLP lesson/modattempts.html,[modattempts_help,mod_lesson]
HLP lesson/mods.html,[modulename_help,mod_lesson]
HLP lesson/nextpageaction.html,[actionaftercorrectanswer_help,mod_lesson]
HLP lesson/ongoing.html,[ongoing_help,mod_lesson]
HLP lesson/overview.html,[overview_help,mod_lesson]
HLP lesson/practice.html,[practice_help,mod_lesson]
HLP lesson/progressbar.html,[progressbar_help,mod_lesson]
HLP lesson/questionoption.html,[multianswer_help,mod_lesson]
HLP lesson/questionoption.html,[casesensitive_help,mod_lesson]
HLP lesson/retake.html,[retakesallowed_help,mod_lesson]
HLP lesson/review.html,[displayreview_help,mod_lesson]
HLP lesson/slideshow.html,[slideshow_help,mod_lesson]
HLP lesson/timed.html,[maxtime_help,mod_lesson]
HLP lesson/usepassword.html,[usepassword_help,mod_lesson]
AMOS END
2010-05-03 14:14:34 +00:00
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
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
0a4abb7306
mod-lesson MDL-21006 Huge refactoring of the lesson code
...
The following are notable changes made in this commit
* Lesson page type are now class based and extend an abstract class. This includes a class for the page type and a class for the creating/editing a instance of this page.
* Converted all forms to mforms
* Action script located in mod/action/* were worked into the above so far less switch statements and the action directory will be removed.
* Implements a custom renderer
* Converted everything to use page, output, and custom renderer methods
* Replaced all deprecated methods incl. print_textarea conversions
* Tried to cut down on excessive DB calls.
Things worth noting:
* The focus of this patch was on cleaning up the module not rewriting it, as such I have organized NOT rewritten. There are still many areas in the module where the code could be greatly improved however to do so would require a rethink/rewrite
2009-12-16 02:00:48 +00:00
Petr Skoda
86342d631f
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 15:03:10 +00:00
samhemelryk
87f83794a4
mod-lesson MDL-19812 Added set_url calls, replaced deprecated functions
2009-09-24 08:05:55 +00:00
samhemelryk
2458610a27
lesson MDL-19812 Updated print_header and build_navigation to OUTPUT and PAGE equivalents
2009-09-07 06:28:37 +00:00
nicolasconnault
d68ccdbaaa
MDL-19812 Upgraded calls to helpbutton, print_simple_box* and notify
2009-08-18 05:15:52 +00:00
nicolasconnault
955ee33d1e
MDL-19812 Upgraded calls to choose_from_menu
2009-08-18 00:12:25 +00:00
nicolasconnault
f7e6b8624a
MDL-19812 Converted all print_footer() calls
2009-08-06 14:14:24 +00:00
dongsheng
86f9334590
"MDL-14129, fix print_error"
2008-06-13 05:12:50 +00:00
jerome
646fc29036
MDL-15112 lesson dml conversion
2008-06-06 04:03:40 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
tjhunt
38e179a4ed
MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
...
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.
Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.
If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
skodak
bb5b72244a
MDL-10890 all require_login() in modules reviewed and fixed use of $cm
2007-08-17 12:49:28 +00:00
mattc-catalyst
01e3838853
MDL-9473: Initialise navlinks array before use
...
Author: Matt Clarkson <mattc@catalyst.net.nz >
2007-07-05 04:55:24 +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
mattc-catalyst
70c6c0ad70
MDL-9474: Updated build_navigation() to use global $COURSE
...
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()
Author: Matt Clarkson <mattc@catalyst.net.nz >
Committer: Matt Clarkson <mattc@catalyst.net.nz >
2007-04-23 21:11:10 +00:00
mattc-catalyst
f8513eca8d
Breadcrumbs: mod/lesson changes
...
- Modified to use build_navigation() for breadcrumb generation.
Author: Matt Clarkson <mattc@catalyst.net.nz >
2007-04-16 21:20:20 +00:00
toyomoyo
220dcd583c
MDL-7861 fixing broken xhtml in lesson
2006-12-20 01:49:58 +00:00
mark-nielsen
5491947aa1
NO CODE CHANGES. Just added PHPdoc comments at the top of lesson files.
2006-09-30 19:49:40 +00:00
mark-nielsen
6e1ff5c8fb
MDL-6477: Added roles support.
...
Also added lesson_set_message() and lesson_print_message() to locallib.php
Also fixed problem in continue.html with not printing nextpageid
2006-09-08 23:17:18 +00:00
mark-nielsen
ab8e5428b5
Merged bug fix for MDL-6325
2006-08-28 20:02:49 +00:00
skodak
f9d5371b28
new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283
2006-08-08 22:09:55 +00:00
mark-nielsen
90455bb3ab
[Fixed] Import. Updated code to work with /question instead of /mod/quiz. Lead to a few interal bug fixes. Also moved two hard coded strings to the lang file.
2006-03-26 00:10:39 +00:00
mark-nielsen
97d2756c65
[New Feature] Tabbed navigation added to lesson (similar to quiz)
...
[Added] Graceful fails added to view.php, essay grading, and reports
[Changed] got rid of a lot of references to $_POST/GET/REQUEST
[Fixed] In reports, it required teacheredit, should only be teacher
[Changed] High scores - teachers can actually see them! Also, improved output by using print_table and print_heading
[Changed] Grade essays now uses fullname() to print user names
2006-03-25 21:38:57 +00:00
skodak
1b1d34225b
incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR)
2006-03-04 12:37:29 +00:00
michaelpenne
2ef7eeec9c
FIXED: was calling an old quiz class name for importing. Updated it to call the new class name
2005-06-29 23:00:12 +00:00
stronk7
0a2c2599b6
Now lesson->name supports filterall
2005-04-24 16:46:51 +00:00
gustav_delius
ec81373f50
In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
...
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00