172 Commits

Author SHA1 Message Date
Dongsheng Cai
b738d41b80 MDL-22688, fixed branch table page type and added contentsformat field to lesson_pages table 2010-06-29 03:23:38 +00:00
Patrick Malley
a82fb0b629 Adding classes to lesson module 2010-05-03 17:35:21 +00:00
Petr Skoda
57cd3739a4 MDL-20204 converting link to html_writer or action_link 2010-02-11 16:56:00 +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
0f4c64b79f MDL-21235 new link method in html_write, partinally replaces old html_link, going to add new action_link soon 2010-01-14 22:10:20 +00:00
Petr Skoda
dc6896efe0 MDL-21198 used new simple_button class when doing OUTPUT->confirm() - more consistent and hopefully easier to remember than html_form::make_button() ;-) 2010-01-03 20:47:13 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Sam Hemelryk
448052a5fd mod-lesson MDL-21006 Refactored renderer->header method, removed logic to function in locallib 2009-12-18 03:50:38 +00:00
Petr Skoda
649cf95d0b MDL-21147 renamed find_renderer back to get_renderer() - there are no more collisions with those magic getters 2009-12-17 14:06:22 +00:00
Petr Skoda
56cbc53b76 MDL-21143 theme renderers related refactoring, it should detect more problems now, there is also a list of core renderer subtypes, hopefully the api changes are improvements 2009-12-17 13:45:54 +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
92ebcabeb3 MDL-20169 fixed coding style, parameter type required 2009-08-27 19:14:45 +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
fe75e76b8f MDL-19812 Converted print_box* to $OUTPUT->box* 2009-08-10 05:00:11 +00:00
nicolasconnault
f7e6b8624a MDL-19812 Converted all print_footer() calls 2009-08-06 14:14:24 +00:00
nicolasconnault
08ed955b35 MDL-19812 2009-08-06 08:22:47 +00:00
tjhunt
4262a2f806 lesson: MDL-19890 Fix block-printing code in lesson (I hope)
This got broken by one of the commits for MDL-19077 & MDL-19010
2009-07-23 10:01:19 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
tjhunt
4e1132a8c5 forum: MDL-19119 missing requires now course/lib.php is not included everywhere.
Put in most of the obvious missing require_once($CFG->libdir . '/completionlib.php');
2009-05-08 09:00:41 +00:00
tjhunt
40d6de1af6 pagelib: MDL-12212 eliminate data_lesson 2009-05-06 09:31:08 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
skodak
6d40f12e5b MDL-19067 removed obsoleted string (never used in any STABLE branch) 2009-05-05 09:05:27 +00:00
skodak
739ee4e679 MDL-19067 removed obsoleted string (never used in any STABLE branch) 2009-05-05 09:05:27 +00:00
skodak
b78267b641 MDL-19067 removed obsoleted string (never used in any STABLE branch) 2009-05-05 09:00:24 +00:00
thepurpleblob
5448544271 MDL-11090
Added absent trim - Thanks Tim :-)

Merged from STABLE_19
2008-12-10 09:39:02 +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
sam_marshall
18a2a0cb3a MDL-15498: Completion: added support for basic completion-on-view and on grade (where applicable) to assignment, choice, data, glossary, lesson, and resource. 2008-07-29 17:22:47 +00:00
dongsheng
1858ba0c67 "MDL-14129, fix print_error" 2008-06-12 11:52:15 +00:00
jerome
9267ffda3c MDL-15112 lesson dml conversion - fix the previous fix ($DB->count_records_select should be $DB->count_records) 2008-06-11 06:04:06 +00:00
jerome
590a837a34 MDL-15112 lesson dml conversion 2008-06-11 05:51:43 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
318e374544 MDL-15112 converted some skipped dml stuff 2008-06-09 12:29:40 +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
mark-nielsen
4c99e342d2 Merging fixes for MDL-12383 and MDL-12605 from MOODLE_19_STABLE 2007-12-29 22:48:48 +00:00
mark-nielsen
124b1091fa Moved some printing out of the center column (keeps blocks and center column content aligned) and cleaned some white space 2007-07-24 07:13:14 +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
92bcca38cd MDL-9550 Implement calls of grade_update() function in Lesson 2007-06-11 11:25:24 +00:00
mark-nielsen
362f2ce973 Merging in fixes for MDL-8414 and MDL-9250 from MOODLE_18_STABLE 2007-04-08 21:02:16 +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
toyomoyo
76d4ec0095 replacing fieldsets in small forms to divs 2007-03-01 05:29:50 +00:00
mark-nielsen
e15cc97f0f Merged in several display and bug fixes from MOODLE_18_STABLE 2007-02-23 20:20:50 +00:00
mark-nielsen
107470cb3a Merged in fixes for MDL-8375 from MOODLE_17_STABLE 2007-02-02 02:27:03 +00:00
mark-nielsen
ddaaceb4bb "Merged" in the fixed for MDL-8137 2007-01-29 06:43:22 +00:00