X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/data/classes/output
home
/
cbholdings
/
pasukulu
/
mod
/
data
/
classes
/
output
/
📁
..
📄
action_bar.php
(13.31 KB)
📄
add_entries_action.php
(2.35 KB)
📄
defaulttemplate.php
(3.32 KB)
📄
empty_database_action_bar.php
(2.31 KB)
📄
fields_action_bar.php
(2.56 KB)
📄
fields_mappings_action_bar.php
(1.82 KB)
📄
preset_preview.php
(4.11 KB)
📄
presets.php
(8.49 KB)
📄
presets_action_bar.php
(2.04 KB)
📄
template_editor.php
(5.99 KB)
📄
template_editor_tools.php
(7.3 KB)
📄
templates_action_bar.php
(2.49 KB)
📄
view_action_bar.php
(5.37 KB)
📄
view_footer.php
(5.46 KB)
📄
zero_state_action_bar.php
(2.96 KB)
Editing: fields_mappings_action_bar.php
<?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_data\output; use templatable; use renderable; /** * Renderable class for the action bar elements in the fields mapping page in the database activity. * * @package mod_data * @copyright 2022 Amaia Anabitarte <amaia@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class fields_mappings_action_bar implements templatable, renderable { /** @var int $id The database module id. */ private $id; /** * The class constructor. * * @param int $id The database module id */ public function __construct(int $id) { $this->id = $id; } /** * Export the data for the mustache template. * * @param \renderer_base $output The renderer to be used to render the action bar elements. * @return array */ public function export_for_template(\renderer_base $output): array { return [ 'tertiarytitle' => get_string('fieldmappings', 'mod_data'), 'hasback' => true, 'backtitle' => get_string('back'), 'backurl' => new \moodle_url('/mod/data/preset.php', ['d' => $this->id]), ]; } }
Upload File
Create Folder