Commit graph

636 commits

Author SHA1 Message Date
Marina Glancy
eabbfa82d3 MDL-38147 Improvements to caching of course categories, coursecat::get_children() improvements
- Course categories caches are purged by event now
- session cache has additional 10 minutes ttl to clear itself and accomodate for permission changes that do not trigger event purging
- additional request-level cache for coursecat::get()
- We store only children of one category in one cache key
- Function coursecat::get_children() can return results sorted and/or paginated. Added tests
2013-03-25 13:23:15 +11:00
Marina Glancy
e1d54562ce MDL-38147 deprecated get_categories(), change usage to coursecat 2013-03-25 13:23:06 +11:00
Marina Glancy
bc81b0065c MDL-38147 deprecated get_all_subcategories() 2013-03-25 13:22:38 +11:00
Marina Glancy
2d8a275bab MDL-38147 deprecated get_course_category(), change usage to coursecat 2013-03-25 13:21:20 +11:00
Marina Glancy
b33389d228 MDL-38147 Created class coursecat, added cache definition and lang strings 2013-03-25 13:20:33 +11:00
Petr Škoda
77a5c09354 MDL-37742 simplify dirty one-space oracle hack 2013-03-24 13:43:18 +01:00
Rajesh Taneja
043f100556 MDL-38332 Administration: Updated update.txt and php doc for get_users_listing 2013-03-12 10:04:40 +08:00
Rajesh Taneja
4e0b615ede MDL-38332 Users: Browse list of users should not contain guest user record 2013-03-08 11:44:42 +08:00
Andrew Davis
c90e6b4644 MDL-36091 added debugging() calls in blocks of code marked as "should never happen" 2013-02-11 13:24:52 +08:00
Marina Glancy
2c49fb4c3e MDL-37572 Course categories are now managed in /course/manage.php
Switching between categories view and edit no longer depend on global editing mode
/course/index.php and /course/category.php do not contain editing code
2013-02-01 08:51:34 +13:00
Petr Škoda
1a4596e434 MDL-29442 add missing utf-8 to entity html encoding and decoding 2012-12-09 18:21:38 +01:00
Petr Škoda
3ed5751685 MDL-35904 improve caching in get_admin() and fix order of records from get_admins() 2012-10-13 09:52:39 +02:00
Tim Hunt
c2004a7952 MDL-34657 user sort: exact match logic should be case-insensitive. 2012-10-04 11:43:33 +01:00
Tim Hunt
9f82ddd66f MDL-34657 datalib: function to generate user sort sql.
The purpose of this method is to ensure that when we display lists of
users in different places, the default sort order is consistent.

Having this code centralised in one place them makes it possible to
improve things accross the board, and there is an example of that here.
There is logic so that if we are searching for particular string, then
users with an exact match are sorted first.
2012-09-27 12:41:41 +01:00
Dan Poltawski
4501a081d3 MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions
This is for performance, else there can be great contention on the guest
user record as we've seen on moodle.org.
2012-09-07 10:25:22 +08:00
Adrian Greeve
b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
Petr Skoda
c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Sam Hemelryk
6bf6e113bb Merge branch 'MDL-31877-master-1' of git://git.luns.net.uk/moodle 2012-03-12 14:57:11 +13:00
Andrew Robert Nicols
cdca666bbb MDL-31877 Correct get_users exception 2012-03-05 13:48:55 +00:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Eloy Lafuente (stronk7)
1991f37f55 Merge branch 'm_MDL-31552_change_add_to_log_exception_to_add_exception_information' of git://github.com/gerrywastaken/moodle 2012-02-15 03:19:44 +01:00
Gerard (Gerry) Caulfield
709dfc0687 MDL-31552 Change add_to_log() so that it's exception handling throws a useful message when there is a problem. 2012-02-15 00:11:24 +08:00
Ankit Kumar Agarwal
04252d3a13 MDL-30975 Docs Adding correct pacakge information 2012-02-13 11:06:47 +05:30
Ankit Kumar Agarwal
fcf64900e6 MDL-30975 Docs Documenting Logs API 2012-02-13 11:06:42 +05:30
Petr Skoda
b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
David Mudrak
68e550e6b2 MDL-30966 print_object() output made CLI-friendly 2012-01-06 22:48:12 +01:00
Petr Skoda
4ad72c284d MDL-30548 support user suspended flag in admin UI
This patch includes:
* user management suspend UI tweaks and other coding style improvements
* suspended info in user profiles
* suspend option in advanced edit form
* suspended user filtering
* hidden user fields option for suspended field

Thanks Sam Hemelryk for valuable feedback.
2012-01-03 16:35:21 +01:00
Petr Skoda
b8d13becf9 MDL-30625 fail gracefully when admins not defined 2011-12-09 09:04:43 +01:00
Petr Skoda
bb6ccfa53d MDL-30625 full support for main admin 2011-12-07 11:18:10 +01:00
Rajesh Taneja
187672608e MDL-28947 lib: print_object cleans html special chars before printing 2011-11-22 09:28:54 +08:00
Petr Skoda
69ac5d478f MDL-30147 do not rely on dml exception type outside of dml layer
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
sam marshall
1fdc0c6aaa MDL-26647 (3) Support showuseridentity on Browse Users page 2011-11-04 13:57:11 +00:00
Eloy Lafuente (stronk7)
86e00f970b MDL-29912 course search - oracle inabilities with concats, empties, nulls and type-restrictions 2011-10-26 19:04:31 +02:00
Eloy Lafuente (stronk7)
3cb206f575 MDL-29496 course search - emergency regression fix 2011-10-20 00:49:02 +02:00
Eloy Lafuente (stronk7)
c2551ed593 Merge branch 'w41_MDL-29602_m22_accesslib' of git://github.com/skodak/moodle 2011-10-18 13:15:13 +02:00
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Jason Fowler
b438bce949 MDL-29496 Search, Course - Code applied from patch to allow courses with a blank summary to be found in searchs - Thanks to Andrew Nicols for the patch 2011-10-10 11:35:42 +08:00
Petr Skoda
618a7f91ec MDL-27597 fix invalid results of get_categories when shallow is false 2011-08-05 20:13:12 +02:00
Petr Skoda
43b9db45da MDL-28384 convert empty log urls to ''
The problem is that the log table does not allow nulls, credit goes to Troy Williams.
2011-07-24 14:07:30 +02:00
Petr Skoda
51c3e855d0 MDL-27696 do not use placeholders in GROUP BY because pg does no like that 2011-07-19 10:53:20 +02:00
Petr Skoda
a1d27703fe Merge branch 'wip-MDL-27696-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:17:05 +02:00
Sam Hemelryk
c103eba85f MDL-27696 datalib Fixed up misused params in get_logs_usercourse 2011-07-13 10:30:35 +08:00
Rossiani Wijaya
c65f0b6fb5 MDL-27755 course search: Add course id and shortname to search fields 2011-07-07 15:02:11 +08:00
Petr Skoda
cf717dc26b MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:15:01 +02:00
Eloy Lafuente (stronk7)
afa559e9bc MDL-25708 recordsets - fix accesslib and datalib uses 2011-01-25 19:58:59 +01:00
Dongsheng Cai
3acbe663af MDL-25669, fix_course_sortorder should check MAX_COURSE_CATEGORIES limit, and print debugging message when the number of courses in a category reach the limit 2011-01-10 09:57:15 +08:00
Petr Skoda
1310964bb3 Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts:
	mod/lesson/version.php
2010-12-27 13:39:20 +01:00
andyjdavis
d8f1412819 message MDL-24860 fixed messaging code in mod_lesson and marked spots that are directly sending email 2010-12-22 12:05:49 +08:00
Eloy Lafuente (stronk7)
b739d51be6 MDL-25674 fix phpdocs 2010-12-21 19:19:35 +01:00
Petr Skoda
5d6ab05435 MDL-25674 prevent modification of cached admin record 2010-12-20 14:41:17 +01:00