Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5213

Dataformview API adjustments for setting default view and entry templates dynmically.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.4, 2.7.1
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      Since dataformview::get_default_view_template and dataformview::get_default_entry_template set view attributes rather than return content, set methods seem more appropriate. This amounts to changing method names to dataformview::set_default_view_template and dataformview::set_default_entry_template respectively.

      A further adjustment is adding adding a param string (defaults to null) to allow passing an alternate template content.

      Finally, changing access level to public to allow setting an laternate template content progrematically.

        Attachments

          Activity

            People

            Assignee:
            itamart Itamar Tzadok
            Reporter:
            itamart Itamar Tzadok
            Tester:
            Itamar Tzadok
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Jul/14