19/Contextos de las preguntas

De MoodleDocs

Moodle 1.9

Para Moodle 1.9 podemos compartir preguntas en diferentes contextos. Contexto puede ser una palabra poco familiar. Piense en un contexto como un área dentro de su sitio en Moodle. Cada contexto diferente tiene separadas las jerarquías de categorías de preguntas. Entonces, usted puede escoger el 'contexto' en el cual sus preguntas serán compartidas. Además, un administrador puede dar a sus usuarios diferentes permisos dentro de diversos contextos.

See the diagram illustrating the relationship of the different contexts below. Different colours denote different context types. Notice how question contexts contain each other. Notice also that Course category contexts can be nested. In this example we have two contexts nested within each other 'Humanities' and 'Languages'. We could have a third course category 'English' and fourth and so on. Course categories can be nested infinitely and so you can set up a very flexible system of question contexts for sharing questions and assigning question sharing permissions.

QuestionContexts.png

Question contexts are just as a subset of the Roles and Permissions contexts. A context contained by another context inherits the permissions of the containing context. You can access question categories in any containing context if you have permission to do so. Remember, you can access the question bank in two ways: from within an activity (now only the quiz activity), or from the link in the Course admin menu to 'Questions'. When you access the question bank from the :

  • Activity. If you have permissions you can access question categories in :
    • that activity's context and containing contexts.
    • the course in which the activity module is contained.
    • the course categories in which the course that contains the activity module is contained.
    • the core system context.
  • Course. If you have permissions you can access question categories in :
    • that course.
    • the course categories in which the course is contained.
    • the core system context.

So questions contexts are accessible as follows :

  • Activity context : questions only available to one activity module.
  • Course context : questions available to all activity modules in a course and within the course from the 'Questions' link in the course administration block.
  • Course category contexts : questions available to all activity modules and courses in the course category (remember one course category can contain other course categories, you can share your questions in any parent course category).
  • Core System context : questions available in all courses and activities on your site.

All Question capabilities are tested in the relevant context. So, for example, to add a question to a category you must have the add capability for that context. See roles and capability help for more info. If you don't have permission to do anything in a context, then the categories in that context will not be visible to you.