Actions

Talk

Talk:Question object types

From LimeSurvey Manual

Question object specification text

1. I think specification is not the same as (our) implementation.

   Olle: True. But the current implementation in LS3 lacks specification. There needs to be something written down that exactly specifies what's needed and why.

2. Specifications should consist of interfaces (and optionally abstract classes) only.

   Olle: Question types will need to include CSS, Javascript, HTML, pictures etc. So only interfaces is not enough.

Current LS3 implementation

Note, this is the current state and some of these are mostly because it is a refactoring from LS2.

1. Uses an interface.

2. Defines what columns it needs via a fieldname => column type map.

3. Defines what EM expressions apply to it.

4. Defines a render functionality that renders the content.

5. Defines a list of classes that should be in the wrapping div.