Survey external functions.
More...
Survey external functions.
- Copyright
- 2015 Juan Leyva juan@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 3.0
◆ get_questions()
static mod_survey_external::get_questions |
( |
| $surveyid | ) |
|
|
static |
Get the complete list of questions for the survey, including subquestions.
- Parameters
-
int | $surveyid | the survey instance id |
- Return values
-
array | of warnings and the question list |
- Since
- Moodle 3.0
- Exceptions
-
◆ get_questions_parameters()
static mod_survey_external::get_questions_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.0
◆ get_questions_returns()
static mod_survey_external::get_questions_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
- Since
- Moodle 3.0
◆ get_surveys_by_courses()
static mod_survey_external::get_surveys_by_courses |
( |
| $courseids = array() | ) |
|
|
static |
Returns a list of surveys in a provided list of courses, if no list is provided all surveys that the user can view will be returned.
- Parameters
-
array | $courseids | the course ids |
- Return values
-
- Since
- Moodle 3.0
◆ get_surveys_by_courses_parameters()
static mod_survey_external::get_surveys_by_courses_parameters |
( |
| ) |
|
|
static |
Describes the parameters for get_surveys_by_courses.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.0
◆ get_surveys_by_courses_returns()
static mod_survey_external::get_surveys_by_courses_returns |
( |
| ) |
|
|
static |
Describes the get_surveys_by_courses return value.
- Return values
-
external_single_structure | |
- Since
- Moodle 3.0
◆ submit_answers()
static mod_survey_external::submit_answers |
( |
| $surveyid, |
|
|
| $answers ) |
|
static |
Submit the answers for a given survey.
- Parameters
-
int | $surveyid | the survey instance id |
array | $answers | the survey answers |
- Return values
-
array | of warnings and status result |
- Since
- Moodle 3.0
- Exceptions
-
◆ submit_answers_parameters()
static mod_survey_external::submit_answers_parameters |
( |
| ) |
|
|
static |
Describes the parameters for submit_answers.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.0
◆ submit_answers_returns()
static mod_survey_external::submit_answers_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
- Since
- Moodle 3.0
◆ view_survey()
static mod_survey_external::view_survey |
( |
| $surveyid | ) |
|
|
static |
Trigger the course module viewed event and update the module completion status.
- Parameters
-
int | $surveyid | the survey instance id |
- Return values
-
array | of warnings and status result |
- Since
- Moodle 3.0
- Exceptions
-
◆ view_survey_parameters()
static mod_survey_external::view_survey_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.0
◆ view_survey_returns()
static mod_survey_external::view_survey_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
- Since
- Moodle 3.0
The documentation for this class was generated from the following file:
- mod/survey/classes/external.php