Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14591 META: Develop new Portfolio API
  3. MDL-16124

revisit supported formats to support inheritance

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Portfolio
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      while talking about making a flickr plugin, we realised that we needed a bit smarter handling of supported formats. In this case, we would want to make it so that the caller could say it supported FORMAT_IMAGE and the fact that a portfolio plugin said FORMAT_FILE would mean a match.

      Nico suggested doing a bitmask test on it but that doesn't work, because FORMAT_IMAGE < FORMAT_FILE, but not the other way around.

      I am going to experiment with using actual php style inheritance and see if that sorts it.

        Attachments

          Activity

            People

            Assignee:
            mjollnir Penny Leach
            Reporter:
            mjollnir Penny Leach
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10