Uploaded image for project: 'COmanage Framework Migration'
  1. COmanage Framework Migration
  2. CFM-269

Convert FieldHelper::control() to use named parameters

    XMLWordPrintable

Details

    Description

      We should take advantage of named parameters so we don’t have to worry about order when passing parameters to functions anymore. This also allows us to lift most parameters up to the top level for simplicity and better self-documenting in function calls. This will allow us to avoid passing in arrays of settings that are somewhat harder to document.

      Begin with FieldHelper::control() which needs a large number of settings passed to it.

      • Convert the fieldSupplement array: take beforeField and afterField and just pass them in directly.
      • Remove the config[] param - and use named parameters instead: refactor all the config params that exist (approximately three)

      Attachments

        Activity

          People

            arlen.johnson@at.internet2.edu Arlen Johnson (google.com)
            arlen.johnson@at.internet2.edu Arlen Johnson (google.com)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: