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: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
m added termreview documentation overview link
 
Línia 14: Línia 14:


'''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)'''
'''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)'''
==See also==
*[https://docs.moodle.org/en/mod/termreview termreview documentation overview]

Revisió de 13:36, 27 març 2009

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)

See also