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

Error in phpdocs linking to non-existing coursecat::get_all_parents()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Course
    • Labels:

      Description

      In moodle v2.7.1
      As mentioned in the comments of "public static function get_all_visible()", I can't find the method "get_all_parents()"
      /**

      • Returns all categories visible to the current user
        *
      • This is a generic function that returns an array of
      • (category id => coursecat object) sorted by sortorder
        *
      • @see coursecat::get_children()
      • @see coursecat::get_all_parents()
        *
      • @return cacheable_object_array array of coursecat objects
        */
        I need a method to fetch all top level course categories.
        Could anybody please tell me that this method has been implemented or not in the moodle v2.7.1.

        Attachments

          Activity

            People

            Assignee:
            pest85 Dmitry Nefedov
            Reporter:
            gautam.arg Gautam Kumar Das
            Peer reviewer:
            Sam Hemelryk
            Integrator:
            Dan Poltawski
            Tester:
            Dan Poltawski
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Nov/14