Moodle

Refactor display of each column type into a separate class

Details

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

Description

The class for each column (type) will control

  • rendering the heading and the data for a question;
  • generating the right sort clause and field names in the query
    These will be sub-classes of a base class.

Then we will define the table as an array of column-class instances.

Need to support 'columns' that take a whole extra row, like question text, as well as ones that fit into a <td>.

The compact view will look almost exactly as it does in Olli's new editing interface.

In the full view, there will be new columns "Creator", "Created", "Modified" and "Tags" in addition to what we have now.

Issue Links

Activity

Hide
Tim Hunt added a comment -

It's now basically working using this code, so deeming this subtask finished. Polishing can happen on other issues.

Show
Tim Hunt added a comment - It's now basically working using this code, so deeming this subtask finished. Polishing can happen on other issues.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: