X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/admin/tool/lp/classes/output
home
/
cbholdings
/
pasukulu
/
admin
/
tool
/
lp
/
classes
/
output
/
π
..
π
competency_plan_navigation.php
(3.03 KB)
π
competency_summary.php
(3.25 KB)
π
course_competencies_page.php
(11.23 KB)
π
manage_competencies_page.php
(4.67 KB)
π
manage_competency_frameworks_page.php
(3.85 KB)
π
manage_templates_page.php
(3.24 KB)
π
module_navigation.php
(2.87 KB)
π
plan_page.php
(4.21 KB)
π
plans_page.php
(3.53 KB)
π
related_competencies.php
(2.67 KB)
π
renderer.php
(8.22 KB)
π
template_cohorts_page.php
(1.76 KB)
π
template_cohorts_table.php
(5.56 KB)
π
template_competencies_page.php
(5.22 KB)
π
template_plans_page.php
(1.75 KB)
π
template_plans_table.php
(6.03 KB)
π
user_competency_course_navigation.php
(4.74 KB)
π
user_competency_summary.php
(2.78 KB)
π
user_competency_summary_in_course.php
(3.13 KB)
π
user_competency_summary_in_plan.php
(2.96 KB)
π
user_evidence_list_page.php
(3.56 KB)
π
user_evidence_page.php
(2.17 KB)
Editing: user_competency_summary.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/>. /** * User competency summary. * * @package tool_lp * @copyright 2016 FrΓ©dΓ©ric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace tool_lp\output; defined('MOODLE_INTERNAL') || die(); use core_user; use renderer_base; use renderable; use templatable; use core_competency\api; use core_competency\user_competency; use tool_lp\external\user_competency_summary_exporter; /** * User competency summary class. * * @package tool_lp * @copyright 2016 FrΓ©dΓ©ric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class user_competency_summary implements renderable, templatable { /** @var usercompetency */ protected $usercompetency; /** @var array */ protected $related; /** * Constructor. * * @param user_competency $usercompetency The user competency. * @param array $related Related objects. */ public function __construct(user_competency $usercompetency, array $related = array()) { $this->usercompetency = $usercompetency; $this->related = $related; } /** * Export the data. * * @param renderer_base $output * @return \stdClass */ public function export_for_template(renderer_base $output) { if (!isset($related['user'])) { $related['user'] = core_user::get_user($this->usercompetency->get('userid')); } if (!isset($related['competency'])) { $related['competency'] = $this->usercompetency->get_competency(); } $related += array( 'usercompetency' => $this->usercompetency, 'usercompetencyplan' => null, 'usercompetencycourse' => null, 'evidence' => api::list_evidence($this->usercompetency->get('userid'), $this->usercompetency->get('competencyid')), 'relatedcompetencies' => api::list_related_competencies($this->usercompetency->get('competencyid')) ); $exporter = new user_competency_summary_exporter(null, $related); $data = $exporter->export($output); return $data; } }
Upload File
Create Folder