40 Commits

Author SHA1 Message Date
Petr Skoda
b8ea3041eb MDL-23184 activity names are now either PARAM_TEXT or PARAM_CLEANHTML, this should be more accurate 2010-09-02 18:29:39 +00:00
Andrew Davis
16306628bd gradebook MDL-19133 shifted around some code to move module grade settings into common code 2010-08-13 08:29:13 +00:00
Petr Skoda
3d1b745283 MDL-22639 fixed meadiafile support - unfortunately all old media files are lost, upgrade again from 1.9..... 2010-07-25 12:39:32 +00: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
1e7f8ea232 MDL-23510 lib.php files have to be as small as possible, the actual implementation should be in locallib.php if possible === less used memory, fewer includes, ....; + coding style cleanup 2010-07-24 18:56:56 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Martin Dougiamas
bfebaf64d8 MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script. 2010-05-13 02:02:05 +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
2f67a9b3a5 MDL-20700 whitespace terror returns yet again 2009-12-16 22:22:37 +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
472e56620e MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 15:17:21 +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
skodak
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
thepurpleblob
4d22ec8144 MDL-11090
Passwords are now held in clear text so you can see what the password
is on the config screen.
Still backward compatible with old md5 passwords (which are still not displayed
of course)

Merged from STABLE_19
2008-11-26 14:34:40 +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
skodak
8eb1d25ffe MDL-11844 new option for conditional stripping of tags from activity names 2008-07-26 15:15:25 +00:00
jerome
646fc29036 MDL-15112 lesson dml conversion 2008-06-06 04:03:40 +00:00
skodak
c18269c7e5 MDL-14679 towards modform conversion 2008-06-01 21:36:11 +00:00
scyrma
d417533252 Fix for par of the missing strings, as reported in MDL-12294 2007-11-26 04:10:08 +00:00
skodak
a78890d593 MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
mattc-catalyst
0ffa2c950e MDL-10888: groupings - mod/lesson - updated to support groupings 2007-08-27 23:05:42 +00:00
skodak
e04ff2d559 MDL-10383 adding new standard elements method - modules now must specify what they support (groups/groupings/groupmembersonly); by default only groupmode selector is enabled 2007-08-20 07:27:04 +00:00
skodak
602433133e MDL-10105 idnumber uniqueness tested before insert in UI now - both modedit and item edit pages 2007-08-02 10:38:18 +00:00
mark-nielsen
862bd9cd9c Attempting to make the form more compact by merging yes/no fields as an enable checkbox after another field to enable/disable the feature 2007-07-24 08:12:12 +00:00
mark-nielsen
acf85537ee Implemented MDL-10558 - Also took this as an opportunity to create two new methods to reduce code redundancy in the lesson save routines. 2007-07-24 06:33:53 +00:00
skodak
23a7718bd1 MDL-9696 used absolute path include in mod_forms 2007-06-10 23:20:45 +00:00
mark-nielsen
e72be0548e Merging in changes for MDL-9947 and MDL-9923 from MOODLE_18_STABLE 2007-05-28 18:55:15 +00:00
mark-nielsen
11bf5b8301 Merging fixes for MDL-9757, MDL-9619 and MDL-9366 from MOODLE_18_STABLE 2007-05-23 17:48:12 +00:00
poltawski
e73457e4ba MDL-9742 Converting tabs to spaces 2007-05-08 15:44:37 +00:00
mark-nielsen
888f0c5460 Adding blocks to lesson
* added pagelib.php with lesson_page class definition
 * Lesson view now uses standard page layout classes
Other fixes:
 * minor fix to mod settings form
 * fixed function names (some were missing lesson_ prefix)
2007-03-24 23:07:59 +00:00
jamiesensei
a7f7e52fc5 changed name of moodleform_mod method 'defaults_preprocessing' to 'data_preprocessing' in line with change of set_defaults name to set_data. 2007-01-16 15:36:33 +00:00
skodak
26de8d35ce fixed text field widths in new forms 2007-01-11 19:47:08 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
jamiesensei
f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +00:00
jamiesensei
a23f0aaf95 * Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
jamiesensei
19194f825a added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method 2006-12-14 12:44:10 +00:00
jamiesensei
19110c573d added new 'cancel' element type and introduced new is_cancelled() MoodleQuickForm method.
also used new cancel button in all mod_forms as well as a 'Revert' button and reworked logic about where to go on cancel or after submission for modedit.php
2006-12-04 09:36:30 +00:00
jamiesensei
74e01e6281 changed name of submit buttons to submitbutton instead of sumbit as submit was conflicting with method form.submit() 2006-11-24 16:38:22 +00:00
jamiesensei
e24b7f851a some restructuring of formslib - moving moodleform_mod definition to new file course\moodleform_mod.php and some changes to moodleform_mod standard elements setup and moodleform disabledIf API 2006-11-24 06:39:15 +00:00
jamiesensei
5f649aaa79 migrated mod/lesson/mod.html to formslib 2006-11-15 07:44:33 +00:00