Commit Graph

879 Commits

Author SHA1 Message Date
Petr Skoda 0831484c2a MDL-14817 fixing recent regressions 2010-10-13 08:29:22 +00:00
Petr Skoda 3c447ebe59 MDL-14817 eliminating all potential ra duplicates 2010-10-12 09:08:36 +00:00
Petr Skoda 62e65b21ab minor coding style improvements and phpdocs cleanup 2010-10-01 21:45:14 +00:00
Petr Skoda 448aad7f5e MDL-24339 improved coding style and fixed id duplicates in get_roles_with_capability() 2010-10-01 21:13:27 +00:00
Petr Skoda b7b88c090d MDL-24339 workaround for broken parents in block instances 2010-09-29 08:16:13 +00:00
Petr Skoda 365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Andrew Davis 2ac5625874 rating MDL-23586 shifted deletion of ratings out of per module delete instance functions and into delete_context() 2010-09-20 03:25:35 +00:00
Petr Skoda b2cd657023 MDL-24278 fixed regression that surfaced after my recent fix 2010-09-19 13:30:05 +00:00
Petr Skoda 582bae08ff MDL-24148 several course delete improvements and fixes:
* fixed order of deleting in course adn context
 * adding course context to event data because it is not available alter and some stuff may depend on old context id
 * adding option for context purging (keeps the context record because it might be still referenced later and it would be recreated)
 * new course enrol cleanup
 * removing content from some course fields that were referencing deleted content
 * coding style and phpdocs improvements
2010-09-19 13:09:48 +00:00
Petr Skoda 7875b1fdfd fixed invalid context creation call 2010-09-18 11:19:37 +00:00
Petr Skoda e92c39cadc improved phpdocs 2010-09-17 12:04:48 +00:00
Petr Skoda 707c9e8b47 fixed one more missing global 2010-09-17 07:41:03 +00:00
Petr Skoda 343d3582bb fixed missing global $ACCESSLIB_PRIVATE minor problems 2010-09-17 07:40:19 +00:00
Petr Skoda 5fd9e798dc fixed missing global $USER causing regressions 2010-09-17 07:39:48 +00:00
Petr Skoda 2fb3434554 fixed missing global causing regressions 2010-09-17 07:39:14 +00:00
Petr Skoda fafa57e972 MDL-24245 groups now respected if capability not specified in enrolment sql - thanks Sam for discovering this + fixed typos in variable names that were causing other bugs 2010-09-17 07:37:51 +00:00
Sam Hemelryk c971c34c71 enrolments MDL-24246 Fixed up broken groups sql 2010-09-17 02:43:02 +00:00
Dongsheng Cai ec125c7596 MDL-22051, move comments deletion code to accesslib.php 2010-09-08 08:29:46 +00:00
Andrew Davis f9cd798c7e rating MDL-23908 improved rating role tips 2010-08-31 07:59:32 +00:00
Petr Skoda f2b7f45486 MDL-23949 ohlala, I have borked the capabilities preloading completely - sorry for the regression!! 2010-08-29 16:26:35 +00:00
Sam Hemelryk f5c1e62149 navigation MDL-23852 Added is_role_switched method to accesslib and implemented use of it 2010-08-27 01:44:25 +00:00
Petr Skoda f14438dc4e MDL-23948 making $ACCESSLIB_PRIVATE proper global 2010-08-26 16:10:19 +00:00
Petr Skoda b545e27a1c MDL-23949 fixed wrong preloading of caps caused by uninitialised $USER 2010-08-26 15:44:42 +00:00
Petr Skoda b3df176457 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:56:07 +00:00
Sam Hemelryk a4c0961c54 lib MDL-23880 Added missing field in get_enrolled_sql causing errors when capability had prohibited roles 2010-08-20 02:45:03 +00:00
Petr Skoda 35716b8682 MDL-22001 filter_text() and filter_string() now use context parameter instead of courseid, PAGE->context is used only as a fallback; moved comment stuff away from format_text() because it does not belong there; filterlib is not using courseid except for legacy filters; fixed coding style in filters;?improved php docs; fixed upgrade of filters (should be in plugins, not core) 2010-07-30 20:51:01 +00:00
Petr Skoda 78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Eloy Lafuente 3e09bb690b MDL-23400 accesslib - get_assignable_roles() now accepts $user param 2010-07-19 17:51:17 +00:00
Petr Skoda 835d78ff9e MDL-22056 simplified component name handling + converting reports to proper pluginname
AMOS BEGIN
 MOV [capability,report_capability],[pluginname,report_capability]
 MOV [questioninstances,report_questioninstances],[pluginname,report_questioninstances]
 MOV [reportsecurity,report_security],[pluginname,report_security]
 MOV [spamcleaner,report_spamcleaner],[pluginname,report_spamcleaner]
AMOS END
2010-07-15 17:13:45 +00:00
Petr Skoda 730eae9ca5 MDL-22056 simplified string name handling 2010-07-15 16:32:26 +00:00
Petr Skoda fa25639535 modulename not used for gradebook plugins any more 2010-07-10 15:10:46 +00:00
Eloy Lafuente a9f877152f MDL-23149 install - fixed problem under Oracle using reserved words as placeholders. Thanks Dan Marsen! 2010-07-08 13:34:09 +00:00
Petr Skoda 7abbc5c2ba MDL-23062 switch role now works for admin too 2010-07-07 08:21:51 +00:00
Petr Skoda 614d18d26c MDL-22984 using standard plugin name string for repositories
AMOS BEGIN
 MOV [repositoryname,repository_alfresco],[pluginname,repository_alfresco]
 MOV [repositoryname,repository_boxnet],[pluginname,repository_boxnet]
 MOV [repositoryname,repository_dropbox],[pluginname,repository_dropbox]
 MOV [repositoryname,repository_filesystem],[pluginname,repository_filesystem]
 MOV [repositoryname,repository_flickr],[pluginname,repository_flickr]
 MOV [repositoryname,repository_flickr_public],[pluginname,repository_flickr_public]
 MOV [repositoryname,repository_googledocs],[pluginname,repository_googledocs]
 MOV [repositoryname,repository_local],[pluginname,repository_local]
 MOV [repositoryname,repository_merlot],[pluginname,repository_merlot]
 MOV [repositoryname,repository_picasa],[pluginname,repository_picasa]
 MOV [repositoryname,repository_recent],[pluginname,repository_recent]
 MOV [repositoryname,repository_s3],[pluginname,repository_s3]
 MOV [repositoryname,repository_upload],[pluginname,repository_upload]
 MOV [repositoryname,repository_url],[pluginname,repository_url]
 MOV [repositoryname,repository_user],[pluginname,repository_user]
 MOV [repositoryname,repository_webdav],[pluginname,repository_webdav]
 MOV [repositoryname,repository_wikimedia],[pluginname,repository_wikimedia]
 MOV [repositoryname,repository_youtube],[pluginname,repository_youtube]
AMOS END
2010-07-04 12:52:10 +00:00
David Mudrak 2418d71ec4 NOBUG: Fixed PHPdoc 2010-06-24 07:51:31 +00:00
Petr Skoda df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda a07600473d MDL-22646 create_context() is internal implementation function, to be used only inside accesslib.php 2010-06-04 07:30:42 +00:00
Petr Skoda 3966ba3e1a MDL-22509 fixed wrong group join 2010-05-27 14:05:24 +00:00
aparup 35900f6759 fixed wording - MDL22441 - renamed the modules 'system' heading to 'activities' 2010-05-24 07:21:18 +00:00
Petr Skoda 4f65e0fbf7 more comment typos fixed 2010-05-22 18:46:43 +00:00
Petr Skoda ed149942a6 fixed more silly typos in comments 2010-05-21 19:31:17 +00:00
Sam Marshall 9e0c17fbf5 MDL-22527 Accesslib patch to support name 'archetypes' instead of 'legacy' in access.php files 2010-05-21 11:43:37 +00:00
Petr Skoda a05bcfbaa5 MDL-14589 files are attached to context so it makes sense to delete them when deleting the context 2010-05-20 07:53:48 +00:00
Petr Skoda 196f1a259d MDL-17317 delete_context can not return false any more, only exceptions when problem found 2010-05-20 07:40:17 +00:00
Martin Dougiamas 03d9401e7d My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them.  I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.

There's still work to do.  Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0.  We also could use a much better course overview block and better CSS styling of the profile pages.  But it's definitely more usable this it was, I think.
2010-05-04 13:04:35 +00:00
Inaki 57e9d92f38 accesslib: MDL-22089 Unassigning role from one user causes warning to happen
The 3rd parameter to role_unassign() was renamed to $groupid_ignored some weeks
ago (as part of MDL-21655), but the $args array that is used to build the query
was not updated to reflect that change. Simply remove 'groupid' from the $args
array so it isn't used in the query at all.
2010-05-02 22:24:35 +00:00
Petr Skoda 83bbafaa18 MDL-21712 fixed regression - guest could access any course, sorrry 2010-04-30 15:36:26 +00:00
Martin Dougiamas 4c14885683 MDL-22056 More tidying up of pluginnames for course reports, and more component names tidying 2010-04-22 15:54:20 +00:00
Martin Dougiamas 2f51f0ca1c MDL-15252 Fixing a bug and improving the display of component names (for role assign page mostly) 2010-04-22 15:37:54 +00:00
Petr Skoda bac6e62eba MDL-22054 starting to switch blocks to pluginname 2010-04-11 10:09:59 +00:00