How the user reach this file url?
Site home -> available courses -> questionnaire1 -> login ->
url : http://localhost:8080/moodle/course/view.php?id=2
click on روانشناختی1 ->
url:http://localhost:8080/moodle/mod/questionnaire/view.php?id=2
Click on Your response
http://localhost:8080/moodle/mod/questionnaire/myreport.php?instance=1&user=2&byresponse=1&a
ction=vresp
Result:
We reach the myreport url from view.php
Then we should search the link address of myreport.php in view.php
View.php :
Line 129:
$questionnaire->page->add_to_page('yourresponse',
'<a href="'.$CFG-
>wwwroot.htmlspecialchars('/mod/questionnaire/myreport.php?'.$argstr).'">'.$titletext
.'</a>');
Add_to_page is the function of PAGE_API
Page api manual address : https://docs.moodle.org/dev/Page_API
Prerequisite: https://docs.moodle.org/en/Context
https://docs.moodle.org/dev/Course_module
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum