Sam Hemelryk
3623d74adc
Merge branch 'wip-MDL-41578-master' of git://github.com/marinaglancy/moodle
2013-09-11 09:00:54 +12:00
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
Marina Glancy
961403c4bf
MDL-41578 Fixed bug in coursecat::has_course_overviewfiles
2013-09-06 10:50:59 +10:00
Marina Glancy
85708da63b
MDL-41395 Improved phpdocs for coursecatlib.php
2013-09-03 19:23:44 +10:00
Sam Hemelryk
1eac203343
MDL-41395 improved phpdoc's for coursecatlib.php
2013-09-03 19:09:07 +10:00
Mark Nelson
f326c5b4f4
MDL-39957 course: replaced the course_category_deleted legacy event
2013-08-15 18:14:08 +08:00
Marina Glancy
e4008e9db5
MDL-41114 Speeding up course listings on large sites
...
- function coursecat::make_categories_list() does not use retrieved contexts and has to query them again.
- /course/manage.php uses field coursecat:: that was not fetched when retrieving the course category children.
2013-08-11 21:58:12 +10:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Rajesh Taneja
c592eea2d3
MDL-40428 Libraries: Deprecated delete_context
2013-07-11 12:18:55 +08:00
Marina Glancy
deabf12e31
MDL-40593 fixed SQL query to be postgres-compartible
2013-07-09 22:24:02 +10: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
Brian King
b04f84bc80
MDL-40130 Caching: let make_categories_list use the cache it makes
2013-06-21 11:12:21 +02:00
Tim Lock
d0ed33d6fd
MDL-40120: Fix get_course_records() which breaks in PSQL
2013-06-11 13:45:23 +12:00
Damyon Wiese
ef4d3233b6
MDL-38596 coursecatlib performance
...
Version bump for cache definitions and added user delete check to sql
2013-05-07 14:10:23 +08:00
Marina Glancy
36ba8fded0
MDL-38596 Added caching to the list of course contacts
2013-05-06 16:57:56 +10:00
Marina Glancy
31b0530aa6
MDL-38596 Optimise SQL in preloading course contacts for number of courses
2013-05-06 14:15:22 +10:00
Marina Glancy
5db8f5a8f4
MDL-39482 avoid using get_category_or_system_context() because file might not be included
2013-05-06 14:06:54 +10:00
Sam Hemelryk
15f89e2872
MDL-39422 course: converted closures to fix eAccelerator issues
2013-05-01 18:43:27 +12:00
Marina Glancy
473d5f74c7
MDL-39211 forgotten include of /course/lib.php
2013-04-18 13:47:04 +10:00
Marina Glancy
d1f8c1bd62
MDL-38708 Added course overview files (most often images) to courses
2013-04-02 11:08:21 +11:00
Marina Glancy
0a02b80cda
MDL-38147 fixed bug with windows PHP different function behaviour
2013-03-27 17:06:27 +11:00
Marina Glancy
a32f163dfd
MDL-38147 do not use DB->sql_length because it does not work on MSSQL
2013-03-27 16:07:29 +11:00
Marina Glancy
290af25434
MDL-38147 fixed small bug on changed categories cache
2013-03-26 14:09:00 +11: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
9c6cfc083f
MDL-38147 fixes to phpdocs and avoid using deprecated context functions
2013-03-25 13:23:37 +11:00
Marina Glancy
9178bbbcf3
MDL-38147 changed logic for building list in make_categories_list()
2013-03-25 13:23:37 +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
15d50fffd8
MDL-38147 Performance improvements to coursecat class:
...
- Retrieve and cache only often-used fields of course category
- Removed function coursecat::get_all_visible() as potentially causing performance issues
- removed function coursecat::get_all_parents() as ineffective and unnecessary, replaced with get_parents()
- retrieve all fields from course_categories when unretrieved field is accessed
Also some code improvements:
- rename functions starting with _ , rename arguments, etc.
2013-03-25 13:23:14 +11:00
Marina Glancy
b33389d228
MDL-38147 Created class coursecat, added cache definition and lang strings
2013-03-25 13:20:33 +11:00