41 Commits

Author SHA1 Message Date
Jean-Michel Vedrine
efbe07b03c MDL-38505 Permit lesson to import images in question text 2013-08-23 07:54:57 +02:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Damyon Wiese
84c5f6416e MDL-35851 lesson: Handle importing questions into an empty lesson.
Also - make sure the page we are updating belongs to the lesson.
2013-07-18 16:45:44 +08:00
Rossiani Wijaya
eebc821c83 MDL-35851 Lesson module: fix page order id for import questions. Add upgrade script to fix lesson pages corrupted links 2013-07-16 09:52:25 +08:00
Rossiani Wijaya
ecea65cace MDL-38429 Lesson Module: improve lesson code by reseting NULL value to use lowercase. 2013-03-25 14:07:18 +08:00
David Monllao
e8eb2b003a MDL-37634 lesson: readquestion visibility to protected 2013-01-28 13:45:42 +13:00
Jean-Michel Vedrine
7980a381cc MDL-36243 question->questiontext and question->generalfeedback should always be strings 2012-12-08 14:09:26 +01:00
Rossiani Wijaya
b09ac20b11 MDL-36589 Lesson Module: set correct answer_jump to next page in question import. 2012-11-14 16:14:52 +08:00
Tim Hunt
cacb8fa08a MDL-34841 error importing questions with long names.
The problem was with the non-UTF-8-safe way that a question name
was being constructed from the question text.

I have done a proper fix with methods in the base class to
carefully construct a question name that is reasonable, and
which will fit in the database column. Then I have changed all
importers to use the new methods.

I also remembered not to break the lesson in the process.
2012-09-11 15:04:00 +01:00
Eloy Lafuente (stronk7)
37a74d1e28 Merge branch 'MDL-27799' of git://github.com/timhunt/moodle 2012-09-06 01:29:04 +02:00
Eloy Lafuente (stronk7)
1c3b1f7aee MDL-35147 lesson qformat import: Dirty hack to support array questiontext structures. 2012-08-31 03:02:53 +02:00
Tim Hunt
e231a3ffa2 MDL-27799 question bank: remove last traces of qtype constants.
Using consants to refer to plugin names is crazy. The whole point of
plugins is that you can install more, hence the list of constants will
never be complete.
2012-08-30 13:15:52 +01:00
Tim Hunt
bba5e71628 MDL-35147 lesson: fix regression from MDL-25492.
I really wish someone would fix lesson to use the question bank.
2012-08-30 13:09:10 +01:00
Petr Skoda
927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Rajesh Taneja
912ea4bc84 MDL-27964 lesson - Quick fix added for importing question files in lesson module 2011-06-29 13:52:52 +08:00
Rajesh Taneja
ba15c346b1 MDL-27956 Lesson - Fixed strings and readquestions scope 2011-06-22 09:11:32 +08:00
Tim Hunt
55190d7e2c MDL-20538 get rid of badly name-spaced constants from lib/questionlib.php.
Unfortunately, they are used all over the import/export code, so I cannot eliminate them completely. However, I was able to move them out of the core library.
2011-06-09 19:27:36 +01:00
Petr Skoda
39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Petr Skoda
64a3ce8c5b improved coding style - mostly variable initialisation + some fixing and spelling 2010-09-18 13:27:21 +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
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
nicolasconnault
d68ccdbaaa MDL-19812 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:15:52 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
skodak
6d40f12e5b MDL-19067 removed obsoleted string (never used in any STABLE branch) 2009-05-05 09:05:27 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
thepurpleblob
508fe4d8b5 MDL-17411
defaultquestion() now reflects the one in the question bank code, thus supressing
lots of notices

Merged from STABLE_19
2008-11-26 13:10:18 +00:00
dongsheng
1858ba0c67 "MDL-14129, fix print_error" 2008-06-12 11:52:15 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +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
5491947aa1 NO CODE CHANGES. Just added PHPdoc comments at the top of lesson files. 2006-09-30 19:49:40 +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
michaelpenne
f7ffb898fa array/object initialization 2005-02-09 22:36:24 +00:00
michaelpenne
5e7856af58 Added a lot of new features to lesson mod. Check them out :)
MarkNielsen
2004-09-15 20:32:24 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
rkingdon
394c97c88b Support for extra question types added; Flash Card style lessons now an
option.
2004-02-26 16:54:47 +00:00