Contexto

De MoodleDocs


Un contexto es un espacio en Moodle donde pueden asignarse roles. Por ejemplo, Un sitio Moodle es un contexto y éste contiene un número de otros contextos en su interior. Una categoría es un contexto, dentro de un contexto de sitio, que contiene cursos y sub-categorías que tienen un contexto de ellas.

Un curso puede contener, dentro de su propio contexto, una actividad, o una categoría de pregunta del Banco de preguntas, que también son contextos.Un contexto puede contener otros contextos y se pueden asignar Roles a cada contexto.

There is a hierarchy of contexts which helps locate and define a specific space. A course can have many contexts in its space. These might include lesson, assignment, forum and quiz modules and blocks.

Generally speaking, this hierarchy allows a lower context to receive information from a higher context. Thus a student in the context of Course A, will initially be considered a student in a Quiz context that is located in Course A. Or when a theme has been set for the Biology course categories, that is passed on to Biology 101.

Roles y contextos

A context is combined with role permissions to define a User's capabilities on any page in Moodle. Typically contexts have their own organization structure which allow a User's role to be passed along to the context "below" but not to the one above it.

Each context can have a different role assigned to a User

It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of "student" for a course but be given a teacher's role in the context of one specific forum. Or a user can be a teacher of one course and a student in another course.

Many Moodle contexts have a place to grant exceptions to specific roles within that context. Those exceptions are non-transferable from that context. That is, an exception can be applied to the next context downward, but cannot applied sideways nor upward from that context.

Discusiones en Foros

The ideas inherent in this discussion "Roles and contexts in Moodle 1.7" are still relevant to Moodle 2.

Gráfica que muestra contextos dentro de contextos

The image below shows a few contexts and their relationships. The "System" or Moodle site is the overall context. The user is defined initially in this context.

  • The System context has 2 contexts under it, with other context under them
    • The Front page context has
      • An activity module context and
      • A block context within it
    • The Course Category context has
      • A Course context within it. The course context has
        • An activity module context and
        • A block context within it

Moodle-contexts-1.8.png

(Source: Development:Roles#Context)

Otra gráfica de jerarquía

Mostrando el Sitio > Categoría > Contextos delcurso pero sin actividades

Vea también