Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

mod/termreview/tutor

De MoodleDocs
Salta a:navegació, cerca

Tutor groups are identified by a function in locallib.php. By default, it checks for the system at my college- a '/' somewhere in the shortname designates a tutor group. This can easily be changed- it is right at the top of locallib.php. If you just want to designate your tutorgroups by something ither than a '/' in the shortname simply change the / in

if(strpbrk($course->shortname,'/')){

to whatever you like (can be as long or short as you like). shortname can be changed to fullname or idnumber (or any other property, but these 3 are the most likely)

If you only want the class teacher or personal tutor functionality, replace

if(strpbrk($course->shortname,'/')){

with

if(true){

for everything to show as a tutor group, or

if(false){

for everything to show as a normal class.

You can also overwrite the whole function with any php function that returns true for tutor groups and false for everything else.

If being unable to change this is a problem, email me at michael_worth@btinternet.com and I'll try to write it for you (assuming you tell me the criteria)