Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29516 DB layer improvements 2.3 META
  3. MDL-32028

Confusing phpDocs block for $DB->record_exists()

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3
    • Component/s: Database SQL/XMLDB
    • Labels:

      Description

      The documentation of the record_exists() contains a relict from 1.x version that is not valid any more and can be very confusing for developers:

      • The record to test is specified by giving up to three fields that must
      • equal the corresponding values.

      I am suggesting to remove these two lines completely

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/12