• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apsolu / local_apsolu / 18468445848

13 Oct 2025 02:06PM UTC coverage: 9.418% (+0.2%) from 9.224%
18468445848

push

github

jboulen
refactor(core): applique des corrections pour le nouveau coding style de Moodle

69 of 875 new or added lines in 51 files covered. (7.89%)

47 existing lines in 11 files now uncovered.

557 of 5914 relevant lines covered (9.42%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/classes/event/session_created.php
1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16

17
namespace local_apsolu\event;
18

19
/**
20
 * Enregistre la création d'une session de cours.
21
 *
22
 * @package   local_apsolu
23
 * @copyright 2020 Université Rennes 2 <dsi-contact@univ-rennes2.fr>
24
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
26
class session_created extends \core\event\base {
27
    /**
28
     * Init method.
29
     *
30
     * @return void
31
     */
32
    protected function init() {
33
        // Values: c (create), r (read), u (update) or d (delete).
34
        $this->data['crud'] = 'c';
×
35

36
        // Values: LEVEL_TEACHING, LEVEL_PARTICIPATING or LEVEL_OTHER.
37
        $this->data['edulevel'] = self::LEVEL_OTHER;
×
38

39
        $this->data['objecttable'] = 'apsolu_attendance_sessions';
×
40
    }
41

42
    /**
43
     * Return localised event name.
44
     *
45
     * @return string
46
     */
47
    public static function get_name() {
48
        return get_string('session_created', 'local_apsolu');
×
49
    }
50

51
    /**
52
     * Returns description of what happened.
53
     *
54
     * @return string
55
     */
56
    public function get_description() {
NEW
57
        return 'The user with id ' . $this->userid . ' created the course session' .
×
NEW
58
           ' with id ' . $this->objectid . ' in the course with the id ' . $this->courseid . '.';
×
59
    }
60

61
    /**
62
     * Returns relevant URL.
63
     *
64
     * @return \moodle_url
65
     */
66
    public function get_url() {
67
        $parameters = ['courseid' => $this->courseid];
×
68
        return new \moodle_url('/local/apsolu/attendance/sessions/index.php', $parameters);
×
69
    }
70
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc