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

Deprecated function get_categories has no replacement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.6
    • Fix Version/s: 2.5.3
    • Component/s: Course
    • Labels:

      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

              Assignee:
              marina Marina Glancy
              Reporter:
              rex Rex Lorenzo
              Peer reviewer:
              Rex Lorenzo
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/13