Code Duplication    Length = 29-30 lines in 15 locations

classes/event/bigbluebuttonbn_activity_created.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_activity_created extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('c', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' created the bigbluebuttonbn activity " .
45
            "with id '$this->objectid' for the course id '$this->courseid'.";
46
    }
47
48
    /**
49
     * Return event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_activity_created', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_activity_deleted.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_activity_deleted extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('d', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' deleted the bigbluebuttonbn activity " .
45
            "with id '$this->objectid' for the course id '$this->courseid'.";
46
    }
47
48
    /**
49
     * Return event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_activity_deleted', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_activity_updated.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_activity_updated extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('u', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' updated the bigbluebuttonbn activity " .
45
            "with id '$this->objectid' for the course id '$this->courseid'.";
46
    }
47
48
    /**
49
     * Return event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_activity_updated', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_activity_viewed.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_activity_viewed extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_PARTICIPATING);
44
        $this->description = "The user with id '$this->userid' viewed the bigbluebuttonbn activity " .
45
            "with id '$this->objectid' for the course id '$this->courseid'.";
46
    }
47
48
    /**
49
     * Return event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_activity_viewed', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_live_session_event.php 1 location

@@ 37-66 (lines=30) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_live_session_event extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init();
44
        $this->description = "The user with id '$this->userid' triggered action $this->other in a ".
45
        "bigbluebutton meeting for the bigbluebuttonbn activity with id ".
46
        "'$this->objectid' for the course id '$this->contextinstanceid'.";
47
    }
48
49
    /**
50
     * Return localised event name.
51
     *
52
     * @return string
53
     */
54
    public static function get_name() {
55
        return get_string('event_live_session', 'bigbluebuttonbn');
56
    }
57
58
    /**
59
     * Return objectid mapping.
60
     *
61
     * @return string
62
     */
63
    public static function get_objectid_mapping() {
64
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
65
    }
66
}
67

classes/event/bigbluebuttonbn_meeting_ended.php 1 location

@@ 37-66 (lines=30) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_meeting_ended extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init();
44
        $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ".
45
            "'$this->objectid' for the course id '$this->contextinstanceid' has been forcibly ".
46
            "ended by the user with id '$this->userid'.";
47
    }
48
49
    /**
50
     * Return localised event name.
51
     *
52
     * @return string
53
     */
54
    public static function get_name() {
55
        return get_string('event_meeting_ended', 'bigbluebuttonbn');
56
    }
57
58
    /**
59
     * Return objectid mapping.
60
     *
61
     * @return string
62
     */
63
    public static function get_objectid_mapping() {
64
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
65
    }
66
}
67

classes/event/bigbluebuttonbn_meeting_joined.php 1 location

@@ 37-66 (lines=30) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_meeting_joined extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init();
44
        $this->description = "The user with id '$this->userid' has joined a bigbluebutton meeting for ".
45
            "the bigbluebuttonbn activity with id '$this->objectid' for the course id ".
46
            "'$this->contextinstanceid'.";
47
    }
48
49
    /**
50
     * Return localised event name.
51
     *
52
     * @return string
53
     */
54
    public static function get_name() {
55
        return get_string('event_meeting_joined', 'bigbluebuttonbn');
56
    }
57
58
    /**
59
     * Return objectid mapping.
60
     *
61
     * @return string
62
     */
63
    public static function get_objectid_mapping() {
64
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
65
    }
66
}
67

classes/event/bigbluebuttonbn_meeting_left.php 1 location

@@ 37-66 (lines=30) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_meeting_left extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init();
44
        $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for ".
45
            "the bigbluebuttonbn activity with id '$this->objectid' for the course id ".
46
            "'$this->contextinstanceid'.";
47
    }
48
49
    /**
50
     * Return localised event name.
51
     *
52
     * @return string
53
     */
54
    public static function get_name() {
55
        return get_string('event_meeting_left', 'bigbluebuttonbn');
56
    }
57
58
    /**
59
     * Return objectid mapping.
60
     *
61
     * @return string
62
     */
63
    public static function get_objectid_mapping() {
64
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
65
    }
66
}
67

classes/event/bigbluebuttonbn_recording_deleted.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_deleted extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has deleted a recording with id ".
45
            "'$this->other' from the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_deleted', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_edited.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_edited extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has edited a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_edited', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_imported.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_imported extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has imported a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_imported', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_protected.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_protected extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has protected a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_protected', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_published.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_published extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has published a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_published', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_unprotected.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_unprotected extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has unprotected a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_unprotected', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66

classes/event/bigbluebuttonbn_recording_unpublished.php 1 location

@@ 37-65 (lines=29) @@
34
 * @copyright 2010 onwards, Blindside Networks Inc
35
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 */
37
class bigbluebuttonbn_recording_unpublished extends base
38
{
39
    /**
40
     * Init method.
41
     */
42
    protected function init() {
43
        parent::init('r', self::LEVEL_OTHER);
44
        $this->description = "The user with id '$this->userid' has unpublished a recording with id ".
45
            "'$this->other' in the course id '$this->contextinstanceid'.";
46
    }
47
48
    /**
49
     * Return localised event name.
50
     *
51
     * @return string
52
     */
53
    public static function get_name() {
54
        return get_string('event_recording_unpublished', 'bigbluebuttonbn');
55
    }
56
57
    /**
58
     * Return objectid mapping.
59
     *
60
     * @return string
61
     */
62
    public static function get_objectid_mapping() {
63
        return array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn');
64
    }
65
}
66