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

Add set_fields and set_fields_select

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:

      Description

      Following a discussion between Eloy Lafuente (stronk7) and I, I present set_fields and set_fields_select.

      Will write some unit tests for these too.

      $DB->set_fields_select('forum_posts', [
              'subject' => '',
              'message' => '',
              'messageformat' => FORMAT_PLAIN,
              'deleted' => 1,
          ], $postsql, $postparams);
      

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            dobedobedoh Andrew Nicols
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: