Contesto: differenze tra le versioni

Da MoodleDocs.
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 16: Riga 16:


==Roles  and contexts==
==Roles  and contexts==
===Ciao===
A context is combined with role permissions to define a User's [[Roles and capabilities|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.
A context is combined with role permissions to define a User's [[Roles and capabilities|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.



Versione delle 14:07, 4 dic 2020

Attenzione: Pagina in costruzione. Per il momento si rimanda alla pagina in inglese Context


Un contesto è uno spazio di Moodle in cui possono essere assegnati i ruoli. Ad esempio, un sito Moodle è un contesto e contiene in sé un certo numero di altri contesti. Una categoria è un contesto, inserito all’interno del contesto di un sito, che contiene corsi e sottocategorie che hanno a loro volta un proprio contesto.

Un corso corso può contenere, all’interno del proprio contesto, un’attività, o una categoria di domande del Deposito delle domande, che sono a loro volta dei contesti. Un contesto può quindi contenere altri contesti e a ogni contesto possono essere assegnati dei Ruoli.

Esiste una gerarchia di contesti che aiuta a localizzare e definire un determinato spazio. Un corso può avere molti contesti all’interno del proprio spazio. Questi possono includere lezione, compito, forum, moduli quiz e blocchi.



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 and contexts

Ciao

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.

Ogni contesto può avere un ruolo diverso assegnato a un Utente


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.


Graphic showing contexts within contexts

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

File:Moodle-contexts-1.8.png

(Source: Development:Roles#Context)

Another graphic of hierarchy

File:Hierarchycategories.png
Showing the Site > Category > Course contexts but not activities

See also