__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

namespace mod_bigbluebuttonbn\external;

use context_module;
use core_external\external_api;
use core_external\external_function_parameters;
use core_external\external_single_structure;
use core_external\external_value;
use core_external\external_warnings;
use mod_bigbluebuttonbn\instance;

/**
 * External service to trigger the course module viewed event and update the module completion status
 *
 * This is mainly used by the mobile application.
 *
 * @package   mod_bigbluebuttonbn
 * @category  external
 * @copyright 2018 onwards, Blindside Networks Inc
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class view_bigbluebuttonbn extends external_api {
    /**
     * Returns description of method parameters
     *
     * @return external_function_parameters
     * @since Moodle 3.0
     */
    public static function execute_parameters() {
        return new external_function_parameters([
                'bigbluebuttonbnid' => new external_value(PARAM_INT, 'bigbluebuttonbn instance id'),
            ]
        );
    }

    /**
     * Trigger the course module viewed event and update the module completion status.
     *
     * @param int $instanceid the bigbluebuttonbn instance id
     * @return array of warnings and status result
     * @since Moodle 3.0
     */
    public static function execute($instanceid) {
        global $CFG;
        require_once($CFG->dirroot . "/mod/bigbluebuttonbn/lib.php");

        ['bigbluebuttonbnid' => $instanceid] = self::validate_parameters(
            self::execute_parameters(),
            ['bigbluebuttonbnid' => $instanceid]
        );

        $instance = instance::get_from_instanceid($instanceid);

        if (empty($instance)) {
            return [
                'status' => false,
                'warnings' => [
                    [
                        'item' => 'mod_bigbluebuttonbn',
                        'itemid' => 0,
                        'warningcode' => 'nosuchinstance',
                        'message' => get_string('nosuchinstance', 'mod_bigbluebuttonbn',
                            (object) ['id' => $instanceid, 'entity' => 'bigbluebuttonbn'])
                    ]
                ]
            ];
        }
        $context = context_module::instance($instance->get_cm_id());
        self::validate_context($context);

        require_capability('mod/bigbluebuttonbn:view', $context);
        // Call the bigbluebuttonbn/lib API.
        bigbluebuttonbn_view($instance->get_instance_data(), $instance->get_course(), $instance->get_cm(), $context);
        return [
            'status' => true,
            'warnings' => []
        ];
    }

    /**
     * Returns description of method result value
     *
     * @return \core_external\external_description
     * @since Moodle 3.0
     */
    public static function execute_returns() {
        return new external_single_structure([
                'status' => new external_value(PARAM_BOOL, 'status: true if success'),
                'warnings' => new external_warnings()
            ]
        );
    }
}

Filemanager

Name Type Size Permission Actions
can_join.php File 3.4 KB 0777
completion_validate.php File 4.08 KB 0777
end_meeting.php File 4.43 KB 0777
get_bigbluebuttonbns_by_courses.php File 4.29 KB 0777
get_join_url.php File 4.09 KB 0777
get_recordings.php File 6.76 KB 0777
get_recordings_to_import.php File 8.78 KB 0777
meeting_info.php File 7.24 KB 0777
update_recording.php File 5.29 KB 0777
view_bigbluebuttonbn.php File 3.69 KB 0777
Filemanager