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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.7.1
    • 2.6.6, 2.7.3
    • Course

    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

            pest85 Dmitry Nefedov
            gautam.arg Gautam Kumar Das
            Sam Hemelryk Sam Hemelryk
            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:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Nov/14