Marina Glancy
4a3fb71c4f
MDL-41436 Removing references to fields course.modinfo, sectioncache
...
Also add the field cacherev to the lists of default fields in course retrieval functions
2013-09-10 14:11:51 +10:00
Petr Škoda
d82993dc7f
MDL-41436 implement new increment_revision_number() function
...
This is intended as a revision counter for local modinfo caching. It should be a lot more reliable and faster than doing it in PHP. Please note you need to invalidate all course caches after using this.
2013-09-10 14:11:44 +10:00
Sam Hemelryk
487caf6b65
Revert "MDL-39876 update_course_record function to update global COURSE"
...
This reverts commit c290ac5510ca06b3eae557c2165c2f106dde46aa.
Conflicts:
course/lib.php
2013-08-21 15:21:06 +12:00
sam marshall
c290ac5510
MDL-39876 update_course_record function to update global COURSE
2013-08-15 11:31:21 +01:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Mark Nelson
4e829d48d1
MDL-40468 libraries: removed usages of get_related_contexts_string() in core
...
Also tidied up the functions by removing unused parameters.
2013-07-19 15:17:50 +08:00
Frederic Massart
2e4c0c9181
MDL-40424 libraries: Deprecate context_instance_preload_sql()
2013-07-12 17:41:49 +08:00
Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Adrian Greeve
a327f25ef1
MDL-31776 - lib: Alternate name fields
...
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
Sam Hemelryk
5d24aff39f
Merge branch 'master_MDL-38019' of git://github.com/andyjdavis/moodle
2013-06-12 09:34:06 +12:00
sam marshall
a260245739
MDL-39723 Remove unnecessary queries for COURSE, SITE
2013-05-28 13:14:55 +01:00
Andrew Davis
b8b50d04fe
MDL-38019 added add_to_config_log() to lib/datalib.php
2013-05-13 08:57:41 +08:00
Petr Škoda
cc1e433286
MDL-39306 fix course search regression
...
Oracle handling of NULLs is totally wrong and crazy!
2013-04-23 12:36:50 +02:00
Damyon Wiese
200571507f
Merge branch 'wip-MDL-37009-master' of git://github.com/marinaglancy/moodle
2013-04-04 11:22:20 +08:00
Tim Hunt
d2e32121b0
MDL-26956 user selector: fix regressions sam caused.
2013-04-03 11:44:23 +01:00
Marina Glancy
09ae7ee031
MDL-37009 Deprecated all courses display functions that are not used any more
...
print_my_moodle(), print_remote_course(),
print_remote_host(), print_whole_category_list(), print_category_info(), get_course_category_tree(),
print_courses(), print_course(), get_category_courses_array(), get_category_courses_array_recursively()
2013-04-02 10:58:24 +11:00
sam marshall
b2ec866fc7
MDL-26956 (1) Library: Move search SQL function to datalib
...
This function used to be in the user selector, but it is useful in
other areas where we want to search for users as it handles a number
of search options (including extra fields, etc.) and returns SQL
which can be included in a joined query.
A unit test has been added to check the results of these searches.
2013-03-28 10:45:12 +00:00
Eloy Lafuente (stronk7)
4efcfaa3ae
Merge branch 'w13_MDL-37742_m25_dirtyoracle' of git://github.com/skodak/moodle
...
Conflicts:
lib/upgrade.txt
2013-03-26 23:04:48 +01:00
Marina Glancy
93c544bdb0
MDL-38147 Added functions coursecat::search_courses(), get_courses()
...
Also search_courses_count(), get_courses_count();
Added unittests
2013-03-25 13:23:38 +11:00
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