X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/course/format/tests/fixtures
home
/
cbholdings
/
pasukulu
/
course
/
format
/
tests
/
fixtures
/
📁
..
📄
format_theunittest.php
(3.07 KB)
📄
format_theunittest_output_course_format_invalidoutput.php
(1.41 KB)
📄
format_theunittest_output_course_format_state.php
(1.49 KB)
📄
format_theunittest_stateactions.php
(3.5 KB)
Editing: format_theunittest_output_course_format_state.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 format_theunittest\output\courseformat\state; use core_courseformat\output\local\state\course as course_state; /** * Fixture for fake course format testing course format API. * * @package core_course * @copyright 2021 Sara Arjona (sara@moodle.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class course extends course_state { /** * Export this data so it can be used as state object in the course editor. * * @param renderer_base $output typically, the renderer that's calling this function * @return stdClass data context for a mustache template */ public function export_for_template(\renderer_base $output): \stdClass { $data = parent::export_for_template($output); $data->newfancyelement = 'thatsme'; return $data; } }
Upload File
Create Folder