X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/classes/output
home
/
cbholdings
/
pasukulu
/
lib
/
classes
/
output
/
π
..
π
activity_header.php
(7.71 KB)
π
checkbox_toggleall.php
(5.02 KB)
π
chooser.php
(3.86 KB)
π
chooser_item.php
(3.09 KB)
π
chooser_section.php
(2.34 KB)
π
datafilter.php
(2.94 KB)
π
dynamic_tabs
π
dynamic_tabs.php
(2.3 KB)
π
external.php
(8.25 KB)
π
icon_system.php
(4.81 KB)
π
icon_system_font.php
(1.57 KB)
π
icon_system_fontawesome.php
(23.52 KB)
π
icon_system_standard.php
(1.52 KB)
π
inplace_editable.php
(10.01 KB)
π
language_menu.php
(5.64 KB)
π
mustache_clean_string_helper.php
(2.41 KB)
π
mustache_engine.php
(2.59 KB)
π
mustache_filesystem_loader.php
(2.61 KB)
π
mustache_helper_collection.php
(7.12 KB)
π
mustache_javascript_helper.php
(1.88 KB)
π
mustache_pix_helper.php
(2.66 KB)
π
mustache_quote_helper.php
(1.87 KB)
π
mustache_shorten_text_helper.php
(2.01 KB)
π
mustache_string_helper.php
(2.51 KB)
π
mustache_template_finder.php
(4.33 KB)
π
mustache_template_source_loader.php
(15.1 KB)
π
mustache_uniqid_helper.php
(1.56 KB)
π
mustache_user_date_helper.php
(2.09 KB)
π
named_templatable.php
(1.25 KB)
π
notification.php
(5.25 KB)
π
participants_action_bar.php
(8.7 KB)
π
select_menu.php
(5.98 KB)
π
sticky_footer.php
(4.52 KB)
π
url_rewriter.php
(1.64 KB)
Editing: chooser_section.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/>. /** * The chooser_section renderable. * * @package core * @copyright 2016 FrΓ©dΓ©ric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\output; defined('MOODLE_INTERNAL') || die(); use lang_string; use renderer_base; use renderable; use stdClass; use templatable; /** * The chooser_section renderable class. * * @package core * @copyright 2016 FrΓ©dΓ©ric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class chooser_section implements renderable, templatable { /** @var string $id An identifier for the section. */ public $id; /** @var lang_string $label The label of the section. */ public $label; /** @var chooser_item[] $items The items in this section. */ public $items; /** * Constructor. * * @param string $id An identifier for the section. * @param lang_string $label The label of the section. * @param chooser_item[] $items The items in this section. */ public function __construct($id, lang_string $label, array $items) { $this->id = $id; $this->label = $label; $this->items = $items; } /** * Export for template. * * @param renderer_base The renderer. * @return stdClass */ public function export_for_template(renderer_base $output) { $data = new stdClass(); $data->id = $this->id; $data->label = (string) $this->label; $data->items = array_map(function($item) use ($output) { return $item->export_for_template($output); }, array_values($this->items)); return $data; } }
Upload File
Create Folder