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

Correct return type documentation for assign::get_grade_item()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.2
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Assignment, Documentation
    • Labels:

      Description

      The assign::get_grade_item() method returns a grade_item object, but the PHPDoc says it is of type stdClass. It would be better if the more specific class could be used so that IDEs will be able to do code hinting on variables returned from the method.

        Attachments

          Activity

            People

            Assignee:
            maherne Michael Aherne
            Reporter:
            maherne Michael Aherne
            Peer reviewer:
            Ankit Agarwal Ankit Agarwal
            Integrator:
            Andrew Lyons Andrew Lyons
            Tester:
            Andrew Lyons Andrew Lyons
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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