Commit Graph

52 Commits

Author SHA1 Message Date
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
moodler 39ee02a3b1 Various old fixes that had not been checked in 2006-01-05 07:09:35 +00:00
danmarsden 3ddb684e57 Fixes for Bug #3876, Bug #3816 2005-08-14 21:59:09 +00:00
moodler 51e041f42e Prettied up choice with some styles (could use work) 2005-05-05 18:34:20 +00:00
stronk7 09972dd340 Some minor things:
- Clean filename.
  - Applied format_string to choice->name and answers.
  - Better parameter handling.
Remaining:
  - A lot of notices in line 148, breaking output with debug enabled!
2005-04-14 19:00:23 +00:00
danmarsden ae2f3b4cbc output to excel and text now checks whether unanswered column should be shown before outputing data. 2005-04-12 22:53:22 +00:00
danmarsden 647396597a now allows download of choice responses to excel or text file 2005-04-11 22:59:32 +00:00
stronk7 408f7c41b4 choice report log action wasn't saving cmid in logs table. 2005-04-10 16:55:32 +00:00
danmarsden af40722cc5 Fix for Bug #2435 - Hidden teachers and site admins are shown in no response list. 2005-04-05 00:35:05 +00:00
danmarsden bd3ba1ddaf Bug #2084 - Choice module has no "save my choice" for admin 2005-04-01 03:26:35 +00:00
moodler bfe97ca600 Report works 2005-03-30 18:17:58 +00:00
danmarsden 6fd87e3bc7 Improved coice mod, allows an unlimited number of choices. 2005-03-29 23:46:17 +00:00
stronk7 c61d50b800 Now choice->name and choice->answerxx work under filterall. 2005-03-27 17:33:16 +00:00
gustav_delius 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
moodler a9d5f810b2 Less $THEME, more white chocolate 2005-02-09 17:15:27 +00:00
moodler d526e68ee7 XHTML and accessibility compliance 2004-10-22 07:45:58 +00:00
gustav_delius 1c61c8d6bc fixed capitalization and quoting of attribute values 2004-09-12 15:06:29 +00:00
gustav_delius 1ff45e740f fixed breadcrumbs 2004-08-21 21:19:21 +00:00
moodler a12f686b62 Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

  ... more consistent with other functions
2004-03-13 14:24:34 +00:00
moodler b6ee2d82ea Groups support for choice module 2004-02-15 08:17:45 +00:00
moodler b3679ca436 Display names using fullname function 2003-11-28 15:41:18 +00:00
moodler 51600d9dab Fixed some accidental lowercasing 2003-07-07 11:52:05 +00:00
moodler 353d033843 get_course_users now calls get_site_users if the course is a site.
There is something wrong with this SQL still though ... it mostly works
but I'm still getting wierd behaviour with small numbers of users.

Need some help here ...  for example just look at get_site_users()
on your test site.

It's supposed to return a list of users who are admins, creators,
teachers or students
2003-05-20 09:33:30 +00:00
moodler 8b50d2a76e Some fixes to make choice reports work better when used at site level.
PLus some HTML lowercasing
2003-05-17 06:17:10 +00:00
moodler dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler b4ab71a6db Fixed links in navigation 2002-10-02 02:24:19 +00:00
martin cd3fccff00 Choices now support up to 6 choices. Backward compatible to 2-choice format. 2002-09-08 09:42:07 +00:00
martin 66062dd310 Sort names by firstname, and include even columns with no answers 2002-08-18 09:47:59 +00:00
martin da664183e1 Cleaned up the Choice report - it's easier to make sense of now 2002-08-18 09:43:01 +00:00
martin c4016bc1db Language changes to choice module 2002-08-12 08:28:04 +00:00
martin 873960de8c Changes related to timezone display. Datetime display now uses userdate()
which itself uses the USER variable timezone to alter the displayed time.
2002-06-05 03:15:30 +00:00