Commit Graph

84 Commits

Author SHA1 Message Date
Petr Skoda cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Dan Marsden 03a6727b6c MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch 2012-02-01 11:24:54 +08:00
Petr Skoda 18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02:00
Sam Marshall bc499733f8 Choice: MDL-20440 Added completion support to Choice (mark completed when user makes choice) 2010-10-14 14:58:43 +00:00
Shane Elliott f574d378d5 MDL-24649 Fixed typo preventing download in excel format 2010-10-13 09:00:31 +00:00
Rossiani Wijaya 315d4971f3 MDL-20508 - update choice module to fix accessibility issue and eliminate the use of table. 2010-07-23 03:55:06 +00:00
Dan Marsden 7aba17d2af Choice MDL-23087 use consistant header with other modules 2010-07-05 22:42:46 +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 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 92059c7ee5 mod MDL-21169 Removed update this module button and ensured there was a link in the settings block for it. 2009-12-23 01:57:55 +00:00
Sam Marshall f1035deb97 MDL-21009 Group selector must use absolute links in order to work with javascript off 2009-11-30 17:12:48 +00:00
Petr Skoda afb6f77dd9 MDL-20929 fixed input validation 2009-11-22 11:09:11 +00:00
Petr Skoda 1adbd2c350 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 14:55:15 +00:00
samhemelryk 97dcb8f88e mod-choice MDL-19805 Added PAGE->set_url calls and removed deprecated functions 2009-09-23 06:34:39 +00:00
samhemelryk 3180e717a2 choice MDL-19805 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 02:05:11 +00:00
nicolasconnault d3fd549372 MDL-19805 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:43:12 +00:00
nicolasconnault 0f4e7a3a93 MDL-19805 Converted all print_footer() calls 2009-08-06 14:20:08 +00:00
danmarsden 9acb770082 MDL-18092 - better checking for empty vars when no users are in course. 2009-02-09 09:19:47 +00:00
danmarsden aea6903315 MDL-17050 excorising $_POST - thanks to mikec for patch - also check groupmode before bothering to get groupstuff to save some trees. 2008-10-31 00:53:28 +00:00
nicolasconnault 407caeeb4b MDL-15105 Upgraded choice module to new dmllib syntax. Tested, and fixed a minor bug in report.php, for ODS export. 2008-06-04 06:42:54 +00:00
dongsheng c72813552a "MDL-14129, fix print_error call" 2008-05-23 07:03:17 +00:00
thepurpleblob cb4db90d27 MDL-14945
MDL-14946
Now checks properly for mod/choice:deleteresponses and mod/choice:downloadresponses
2008-05-22 10:13:55 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
moodler a61e418846 MDL-13478 Fixing a botched merge 2008-03-03 04:42:01 +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
mattc-catalyst 6d5b7706da MDL-10888: groupings - mod/choice - updated to support groupings 2007-08-27 21:52:35 +00:00
skodak 2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +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
poltawski a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +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 161fbddf13 Breadcrumbs: mod/choice changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:02:24 +00:00
toyomoyo 95aa949b72 MDL-7861, xhtml strict fixes for choice 2007-01-09 03:14:34 +00:00
skodak d81b7ffbd7 MDL-7996 Add ods export support - more reports 2006-12-21 19:46:29 +00:00
toyomoyo 33a893aa2b merged, adding missing fields 2006-11-15 06:28:37 +00:00
toyomoyo e1658dad73 merged, replacing deprecated functions 2006-11-15 06:23:28 +00:00
toyomoyo 39b3e7dedf adding capaility, fixing indenting and logic (could have broken things) 2006-09-11 07:17:10 +00:00
toyomoyo f9a59efa64 adding some capabilities 2006-08-29 08:43:59 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45: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
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
skodak 69e3c41688 page parameter cleanup 2006-04-23 21:07:44 +00:00
danmarsden acaf7b86e3 Bug Fixes for:
Bug 5042
Bug 4600
Bug 4021
Bad code - need to check vars aren't empty b4 using them!
2006-04-04 23:03:15 +00:00
danmarsden 90ca2ce87d fixed bug with limits not limiting for only enrolled students - limit was counting non-enrolled students as well. - also removed checkboxes to delete response from not-answered column. 2006-02-23 21:20:44 +00:00
danmarsden 348630d87e moving duplicated code into Lib.php as functions & clean up the code a bit. - also now include users group info in text/excel downloads. - preparation for new choice block! 2006-02-23 01:20:24 +00:00
danmarsden d921818dc1 tidy up download of files when groups are turned on. + fix for Bug 4601 Bug 4476 2006-02-09 22:45:31 +00:00
danmarsden 313441331e add ability to delete responses, add pragma to text download and removed hardcoded localised string. 2006-02-09 21:09:10 +00:00
stronk7 b089856647 Now Choice is using the new Excel generation API
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:33:29 +00:00