ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

Myreport.php

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ASP C# .NET & PHP
View previous topic :: View next topic  
Author Message
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Mar 18, 2020 10:31 am    Post subject: Myreport.php Reply with quote

Myreport.php
Search this file name in /mod/questionnaire directory:

Result in file names:

1. Myreport.php
2. ./questionnaire/classes/question/question.php
3. Drawchart.php
4. Lib.php
5. Questionnaire.class.php
6. Styles.css
7. Tabs.php
8. View.php

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ASP C# .NET & PHP All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
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