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

Use proper __construct in forms API for PHP7 support

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • Forms Library
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • wip-MDL-52081-master
    • Hide

      The following forms need to be checked that they don't throw any errors/debugging messages:

      • user edit form
      • course edit form
      • event monitor report
      • add assignment form
      • add lesson form
      • upload users form
      • create assignment with rubric
      • grade student in assignment with rubric
      • test file with otherwise unused element(s): htmleditor, listing, warning, submitlink https://gist.github.com/marinaglancy/8c9071a5cbd7bd198b4f
      • community block search form
      • edit question categories (in question bank inside a course)
      • create wiki without forcing page format and add pages
      • enable self registration and recaptcha and check out registration form with recaptcha el
      • create lesson and select user override (searchableselector element)
      • enable outcomes and edit outcome (/grade/edit/outcome/edit.php)
      • create database with several fields and open export form
      • register external blog form
      • create assignment with marking guide, define it and grade a student
      • create wiki and create a page in format other than html
      Show
      The following forms need to be checked that they don't throw any errors/debugging messages: user edit form course edit form event monitor report add assignment form add lesson form upload users form create assignment with rubric grade student in assignment with rubric test file with otherwise unused element(s): htmleditor, listing, warning, submitlink https://gist.github.com/marinaglancy/8c9071a5cbd7bd198b4f community block search form edit question categories (in question bank inside a course) create wiki without forcing page format and add pages enable self registration and recaptcha and check out registration form with recaptcha el create lesson and select user override (searchableselector element) enable outcomes and edit outcome (/grade/edit/outcome/edit.php) create database with several fields and open export form register external blog form create assignment with marking guide, define it and grade a student create wiki and create a page in format other than html

    Description

      in forms API we use class name as constructor, should be __construct()

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              cameron1729 cameron1729
              David Monllaó David Monllaó
              Mark Nelson Mark Nelson
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Dec/15