芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/mod/feedback/db/services.php
. /** * Feedback external functions and service definitions. * * @package mod_feedback * @category external * @copyright 2017 Juan Leyva
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since Moodle 3.3 */ defined('MOODLE_INTERNAL') || die; $functions = array( 'mod_feedback_get_feedbacks_by_courses' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_feedbacks_by_courses', 'description' => 'Returns a list of feedbacks in a provided list of courses, if no list is provided all feedbacks that the user can view will be returned.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), 'mod_feedback_get_feedback_access_information' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_feedback_access_information', 'description' => 'Return access information for a given feedback.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), 'mod_feedback_view_feedback' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'view_feedback', 'description' => 'Trigger the course module viewed event and update the module completion status.', 'type' => 'write', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_current_completed_tmp' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_current_completed_tmp', 'description' => 'Returns the temporary completion record for the current user.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_items' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_items', 'description' => 'Returns the items (questions) in the given feedback.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_launch_feedback' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'launch_feedback', 'description' => 'Starts or continues a feedback submission.', 'type' => 'write', 'capabilities' => 'mod/feedback:complete', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_page_items' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_page_items', 'description' => 'Get a single feedback page items.', 'type' => 'read', 'capabilities' => 'mod/feedback:complete', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_process_page' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'process_page', 'description' => 'Process a jump between pages.', 'type' => 'write', 'capabilities' => 'mod/feedback:complete', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_analysis' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_analysis', 'description' => 'Retrieves the feedback analysis.', 'type' => 'read', 'capabilities' => 'mod/feedback:viewanalysepage', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_unfinished_responses' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_unfinished_responses', 'description' => 'Retrieves responses from the current unfinished attempt.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_finished_responses' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_finished_responses', 'description' => 'Retrieves responses from the last finished attempt.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_non_respondents' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_non_respondents', 'description' => 'Retrieves a list of students who didn\'t submit the feedback.', 'type' => 'read', 'capabilities' => 'mod/feedback:viewreports', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_responses_analysis' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_responses_analysis', 'description' => 'Return the feedback user responses analysis.', 'type' => 'read', 'capabilities' => 'mod/feedback:viewreports', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_feedback_get_last_completed' => array( 'classname' => 'mod_feedback_external', 'methodname' => 'get_last_completed', 'description' => 'Retrieves the last completion record for the current user.', 'type' => 'read', 'capabilities' => 'mod/feedback:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), );