1 | <?php |
||
37 | abstract class base extends \core\event\base { |
||
38 | |||
39 | /** @var \bigbluebuttonbn */ |
||
40 | protected $bigbluebuttonbn; |
||
41 | |||
42 | /** |
||
43 | * Description. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $description; |
||
48 | |||
49 | /** |
||
50 | * Object Id Mapping. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | protected static $objectidmapping = array('db' => 'bigbluebuttonbn', 'restore' => 'bigbluebuttonbn'); |
||
55 | |||
56 | /** |
||
57 | * Legacy log data. |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $legacylogdata; |
||
62 | |||
63 | /** |
||
64 | * Init method. |
||
65 | * @param string $crud |
||
66 | * @param integer $edulevel |
||
67 | */ |
||
68 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
||
73 | |||
74 | /** |
||
75 | * Returns description of what happened. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function get_description() { |
||
93 | |||
94 | /** |
||
95 | * Returns relevant URL. |
||
96 | * |
||
97 | * @return \moodle_url |
||
98 | */ |
||
99 | public function get_url() { |
||
102 | |||
103 | /** |
||
104 | * Sets the legacy event log data. |
||
105 | * |
||
106 | * @param string $action The current action |
||
107 | * @param string $info A detailed description of the change. But no more than 255 characters. |
||
108 | * @param string $url The url to the assign module instance. |
||
109 | */ |
||
110 | public function set_legacy_logdata($action = '', $info = '', $url = '') { |
||
118 | |||
119 | /** |
||
120 | * Return legacy data for add_to_log(). |
||
121 | * |
||
122 | * @return array |
||
123 | */ |
||
124 | protected function get_legacy_logdata() { |
||
131 | |||
132 | /** |
||
133 | * Custom validation. |
||
134 | * |
||
135 | * @throws \coding_exception |
||
136 | */ |
||
137 | protected function validate_data() { |
||
144 | } |
||
145 |