1. 25 Jun, 2021 1 commit
  2. 25 Mar, 2021 1 commit
  3. 10 Mar, 2021 1 commit
    • sam marshall's avatar
      MDL-45242 Lib: Replace calls to deprecated functions · 558cc1b8
      sam marshall authored
      In all cases changes have been kept to a minimum while not making
      the code completely horrible. For example, there are many instances
      where it would probably be better to rewrite a query entirely, but
      I have not done that (in order to reduce the risk of changes).
      558cc1b8
  4. 30 Sep, 2020 1 commit
  5. 15 Jul, 2020 1 commit
    • jun's avatar
      MDL-57678 core_course: Deprecate make_categories_options() · 2c45ad6f
      jun authored
      Padding nested course categories by space to make them render in a tree
      structure does not really make a lot of sense as they are already being
      rendered as full paths. It's simpler to show them without the
      indentation.
      Given this, there's not much point keeping make_categories_options().
      So it's better to deprecate this function and call
      core_course_category::make_categories_list() directly instead.
      2c45ad6f
  6. 20 May, 2020 1 commit
    • Neill Magill's avatar
      MDL-64427 category: Stop error when another user deleting courses · 7289f5c0
      Neill Magill authored
      If you try to visit a category where another user is deleting a
      course the coursecat cache may not be fresh. This is because there
      is a breif time where the course record will have been deleted,
      while it is deleting other course information, before the event that
      triggers the coursecat cache to be purged is fired.
      7289f5c0
  7. 19 May, 2020 1 commit
  8. 18 May, 2020 1 commit
  9. 12 May, 2020 2 commits
    • Ruslan Kabalin's avatar
      MDL-67548 core_course: Add more category deletion hooks. · 72316a9f
      Ruslan Kabalin authored
      Introduce new hooks for plugin developers:
      
        - <component>_can_course_category_delete($category)
        - <component>_can_course_category_delete_move($category, $newcategory)
      These hooks allow plugin developers greater control over category deletion. Plugin can return false in those
      functions if category deletion or deletion with content move to the new parent category is not permitted.
      
        - <component>_pre_course_category_delete_move($category, $newcategory)
      This hook is expanding functionality of existing <component>_pre_course_category_delete hook and allow plugin developers
      to execute code prior to category deletion when its content is moved to another category.
      
       - <component>_get_course_category_contents($category)
      This hook allow plugin developers to add information that is displayed on category deletion form. Function should
      return string, which will be added to the list of category contents shown on the form.
      72316a9f
    • Ruslan Kabalin's avatar
  10. 30 Jan, 2020 1 commit
  11. 15 Jan, 2020 1 commit
  12. 14 Oct, 2019 1 commit
  13. 18 Apr, 2019 1 commit
  14. 10 Apr, 2019 2 commits
  15. 18 Jan, 2019 1 commit
  16. 13 Nov, 2018 1 commit
    • Andrew Nicols's avatar
      MDL-53566 core: Add support for context locking · 0616f045
      Andrew Nicols authored
      This chagne adds support for a new feature known as Context Locking.
      This allows a context to be locked, thereby removing all write
      capabilities for all users (including admin) for that context, and all
      child contexts.
      0616f045
  17. 21 Sep, 2018 1 commit
    • Jonathan Champ's avatar
      MDL-54035 accesslib: separate role definition cache clear · b2f349a4
      Jonathan Champ authored
      Thanks to MDL-49398, we can separate the combined user session and role
      definition cache clearing function into two separate functions. At the
      same time, we want to identify and remove mark_dirty() calls that were
      added for role definition changes but were incorrectly left behind.
      
      Change highlights:
       - Remove unnecessary mark_dirty() calls performed after
         assign_capability(), unassign_capability(), delete_role(),
         deleted contexts, brand new contexts
       - Move role definition cache clear from the user-centric
         accesslib_clear_all_caches() to the newly created,
         role-dedicated accesslib_reset_role_cache()
      b2f349a4
  18. 28 Aug, 2018 1 commit
  19. 28 Jul, 2018 1 commit
  20. 21 Mar, 2018 1 commit
  21. 20 Mar, 2018 1 commit
  22. 16 Mar, 2018 1 commit
  23. 03 Oct, 2017 3 commits
  24. 29 Sep, 2017 1 commit
  25. 01 Sep, 2017 1 commit
  26. 06 Mar, 2017 1 commit
    • Adam Olley's avatar
      MDL-58160 coursecat: Use set_many to populate category cache · b3e4fbc0
      Adam Olley authored
      When the course category cache needs to be repopulated, two entries are added
      to the cache for each category. In core this is currently done in a for-loop,
      resulting in N set calls to the cache (where N is twice the number of
      categories in Moodle).
      
      This change switches that code to using a single set_many cache call instead,
      which makes this an O(1) operation instead of O(N).
      
      For a site with say, 1000 categories, this results in only 1 set call to the
      cachestore instead of 2000.
      b3e4fbc0
  27. 02 Nov, 2016 1 commit
  28. 03 Oct, 2016 1 commit
  29. 15 Mar, 2016 1 commit
  30. 09 Mar, 2016 1 commit
    • Damyon Wiese's avatar
      MDL-51324 forms: Add a new course selector · 235ef57a
      Damyon Wiese authored
      This is a squashed commit containing a number of changes:
      
      This is an ajax driven course selector that has searching etc. It can select single, or multiple courses.
      Make course selector accept a list of courses to exclude
      courseselector - lookup coursename on setValue
      Use the get_course_display_name_in_list function to generate the course names
      Add a throttle to auto-complete to reduce spamming the server
      Do a single query to fetch all the courses in the mform element when validation fails
      Fix core course search function to return results when there are less than 2 chars in the query.
      Handle setData with an empty array in new course selector
      235ef57a
  31. 10 Jan, 2016 1 commit
  32. 07 Oct, 2015 2 commits
  33. 25 May, 2015 1 commit
  34. 23 Mar, 2015 1 commit
  35. 22 Mar, 2015 1 commit