Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42323

Deprecated function get_categories has no replacement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.2, 2.6
    • 2.5.3
    • Course

    Description

      When the coursecat class was created as part of MDL-38147 it deprecated the function get_categories(). In the deprecation documentation it said that these would be an equivalent call to return all the categories on the system:

      coursecat::get($categoryid)->get_children(array('recursive' => true))
      coursecat::get(0)->get_children(array('recursive' => true))
      

      However, the code for get_children never actually implemented the handling of the 'recursive' option.

      EDITED: After discussion (see below) we decided not to re-implement this functionality and change phpdocs to the deprecated function instead

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              rex Rex Lorenzo
              Rex Lorenzo Rex Lorenzo
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Nov/13