Moodle
  1. Moodle
  2. MDL-29540

Please can we have the new constants from MDL-29401 back-ported to all 2.x branches

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.4, 2.1.1
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
      None
    • Testing Instructions:
      Hide

      Make a simple test script that uses optional_param(..., PARAM_COMPONENT) and so on, and make sure it works in 2.0 and 2.1

      Show
      Make a simple test script that uses optional_param(..., PARAM_COMPONENT) and so on, and make sure it works in 2.0 and 2.1
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Rank:
      19017

      Description

      For those of us writing third-party plugins, it would be helpful if we could start using the new PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN straight away.

      Therefore, please can we these constants defined in 2.0 and 2.1? One option is just to define the constants (make them equal to PARAM_ALNUMEXT or something).

      An alternative would be to also back-port the changes to clean_param.

      Another advantage of this is that we will be less likely to get regressions when people cherry-pick bug fixes from master to the stable branches.

        Issue Links

          Activity

          Tim Hunt created issue -
          Tim Hunt made changes -
          Field Original Value New Value
          Assignee moodle.com [ moodle.com ] Petr Škoda (skodak) [ skodak ]
          Tim Hunt made changes -
          Link This issue has a non-specific relationship to MDL-29401 [ MDL-29401 ]
          Petr Škoda made changes -
          Assignee Petr Škoda (skodak) [ skodak ] moodle.com [ moodle.com ]
          Petr Škoda made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee moodle.com [ moodle.com ] Petr Škoda [ skodak ]
          Resolution Won't Fix [ 2 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: