MDL-76583 core: Update uses of external_* classes
This commit is contained in:
@@ -14,21 +14,14 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* folder external API
|
||||
*
|
||||
* @package mod_folder
|
||||
* @category external
|
||||
* @copyright 2015 Juan Leyva <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since Moodle 3.0
|
||||
*/
|
||||
|
||||
use core_course\external\helper_for_get_mods_by_courses;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
require_once("$CFG->libdir/externallib.php");
|
||||
use core_external\external_api;
|
||||
use core_external\external_function_parameters;
|
||||
use core_external\external_multiple_structure;
|
||||
use core_external\external_single_structure;
|
||||
use core_external\external_value;
|
||||
use core_external\external_warnings;
|
||||
use core_external\util;
|
||||
|
||||
/**
|
||||
* folder external functions
|
||||
@@ -94,7 +87,7 @@ class mod_folder_external extends external_api {
|
||||
/**
|
||||
* Returns description of method result value
|
||||
*
|
||||
* @return external_description
|
||||
* @return \core_external\external_description
|
||||
* @since Moodle 3.0
|
||||
*/
|
||||
public static function view_folder_returns() {
|
||||
@@ -149,7 +142,7 @@ class mod_folder_external extends external_api {
|
||||
// Ensure there are courseids to loop through.
|
||||
if (!empty($params['courseids'])) {
|
||||
|
||||
list($courses, $warnings) = external_util::validate_courses($params['courseids'], $mycourses);
|
||||
list($courses, $warnings) = util::validate_courses($params['courseids'], $mycourses);
|
||||
|
||||
// Get the folders in this course, this function checks users visibility permissions.
|
||||
// We can avoid then additional validate_context calls.
|
||||
|
||||
Reference in New Issue
Block a user