Commit Graph

56 Commits

Author SHA1 Message Date
9b24f68bde MDL-41177 mod_lesson: unified @package use 2014-02-16 11:51:23 +13:00
8c6ca6961a MDL-42339 - removed double formatting for set_title() and set_heading() 2014-02-05 14:47:23 +08:00
c0382dd012 Merge branch 'MDL-40735_lesson' of https://github.com/andyjdavis/moodle 2013-09-10 15:44:49 +12:00
974beea10a MDL-40735 mod_lesson: fixed up a header and stripped out hardcoded formatting 2013-09-02 12:38:20 +07:00
efbe07b03c MDL-38505 Permit lesson to import images in question text 2013-08-23 07:54:57 +02:00
74df2951d1 Revert "MDL-39876 Change get_record('course') calls to get_course"
This reverts commit ab7632b74c.
2013-08-21 13:42:30 +08:00
ab7632b74c MDL-39876 Change get_record('course') calls to get_course 2013-08-15 11:31:20 +01:00
0e35ba6ffc MDL-36357 cleanup - remove double semicolons 2012-11-15 09:51:26 +08:00
5918e3715e MDL-34467 lesson: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:26:35 +08:00
b6b5023144 MDL-28701 some more tempdirs updated 2011-09-10 10:55:32 +02:00
af9b14446d MDL-28701 Change uses of make_upload_directory(temp) to make_temp_directory(). 2011-09-10 10:43:49 +02:00
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
cc3dbaaa30 MDL-21249 improved php docs package+subpackage info in mod/lesson 2010-07-25 10:54:39 +00:00
b3daa92632 fixed coding style to match other modules 2010-07-25 09:30:09 +00:00
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
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
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
86342d631f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 15:03:10 +00:00
87f83794a4 mod-lesson MDL-19812 Added set_url calls, replaced deprecated functions 2009-09-24 08:05:55 +00:00
2458610a27 lesson MDL-19812 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 06:28:37 +00:00
d68ccdbaaa MDL-19812 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:15:52 +00:00
955ee33d1e MDL-19812 Upgraded calls to choose_from_menu 2009-08-18 00:12:25 +00:00
f7e6b8624a MDL-19812 Converted all print_footer() calls 2009-08-06 14:14:24 +00:00
86f9334590 "MDL-14129, fix print_error" 2008-06-13 05:12:50 +00:00
646fc29036 MDL-15112 lesson dml conversion 2008-06-06 04:03:40 +00:00
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
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
bb5b72244a MDL-10890 all require_login() in modules reviewed and fixed use of $cm 2007-08-17 12:49:28 +00:00
01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
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
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
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
220dcd583c MDL-7861 fixing broken xhtml in lesson 2006-12-20 01:49:58 +00:00
5491947aa1 NO CODE CHANGES. Just added PHPdoc comments at the top of lesson files. 2006-09-30 19:49:40 +00:00
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
ab8e5428b5 Merged bug fix for MDL-6325 2006-08-28 20:02:49 +00:00
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
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
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
1b1d34225b incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR) 2006-03-04 12:37:29 +00:00
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
0a2c2599b6 Now lesson->name supports filterall 2005-04-24 16:46:51 +00:00
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
fafd89a0f1 Removed $THEMEs and stuff.
I'm a little worried about this spaghetti code ... it's a mess!
2005-02-09 15:36:29 +00:00
62d5291318 this is Petrs security fix for import 2005-02-04 19:33:33 +00:00
f862f00d54 variable cleaning and sesskey updates 2005-01-27 21:36:12 +00:00
1e448f63f4 Merged fix from stable 2004-09-29 06:58:21 +00:00
6e30064b5d Integration of upload code with lesson - html form
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
    2004-09-16 04:31:47 GMT
    Penny Leach <penny@catalyst.net.nz>
    added the upload class stuff for the upload form for lesson

Full logs:

Revision: moodle--eduforge--1.3.3--patch-69
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:31:47 NZST 2004
Standard-date: 2004-09-16 04:31:47 GMT
Modified-files: mod/lesson/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
Summary: added the upload class stuff for the upload form for lesson
Keywords:
2004-09-16 04:33:29 +00:00
3dc2cd2dee Integration of upload code with lesson.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-68
    2004-09-16 04:22:37 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload class integration with lesson

Full logs:

Revision: moodle--eduforge--1.3.3--patch-68
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:22:37 NZST 2004
Standard-date: 2004-09-16 04:22:37 GMT
Modified-files: mod/lesson/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-68
Summary: upload class integration with lesson
Keywords:
2004-09-16 04:25:55 +00:00