Moodle

New database field qustion.allquestiontext

Details

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

Description

Method that subclasses can override to help populate it in the qtype base class.

Ensure that it is set correctly on question save.

Ensure that the data is never loaded, for example during quiz attempts. (It exists only to search.)

Activity

Hide
Tim Hunt added a comment -

Also ensure allquestiontext is set correctly on restore.

Show
Tim Hunt added a comment - Also ensure allquestiontext is set correctly on restore.
Hide
Tim Hunt added a comment -

Notes to self:

1. Need to grep the code for

{question} and get_[^s].*['"]question['"]

to check which fields each query is loading.

2. Need to think about upgrade and restore.

Show
Tim Hunt added a comment - Notes to self: 1. Need to grep the code for {question} and get_[^s].*['"]question['"] to check which fields each query is loading. 2. Need to think about upgrade and restore.
Hide
Tim Hunt added a comment -

On further reflection, I have decided that this is a bad idea.

The proper way to do full-text search is to use the Zend Lucene engine, but that will be a lot of work, so I will leave it for later. For now I will just make the search UI search the questiontext field.

Show
Tim Hunt added a comment - On further reflection, I have decided that this is a bad idea. The proper way to do full-text search is to use the Zend Lucene engine, but that will be a lot of work, so I will leave it for later. For now I will just make the search UI search the questiontext field.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: