-
Notifications
You must be signed in to change notification settings - Fork 1
/
LCsvGnieacsPlugin.php
39 lines (35 loc) · 1.05 KB
/
LCsvGnieacsPlugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
class LMSLCsvGenieacsPlugin extends LMSPlugin {
const plugin_directory_name = 'LMSLCsvGenieacsPlugin';
const PLUGIN_DBVERSION = '2022060600';
const PLUGIN_DB_VERSION = '2022060600';
const PLUGIN_NAME = 'LMSLCsvGenieacs';
const PLUGIN_DESCRIPTION = 'LMS Plugin for LightCsv-Genieacs';
const PLUGIN_AUTHOR = 'Sylwester Zdanowski';
private static $lcsv = null;
public static function getLCsvGenieacsInstance() {
if (empty(self::$lcsv))
self::$lcsv = new LCsvGenieacs();
return self::$lcsv;
}
public function registerHandlers() {
$this->handlers = array(
'smarty_initialized' => array(
'class' => 'LCsvGenieacsInitHandler',
'method' => 'smartyInit'
),
'nodeadd_before_display' => array(
'class' => 'LCsvGenieacsNodeHandler',
'method' => 'nodeAddBeforeSubmit'
),
'nodeadd_after_submit' => array(
'class' => 'LCsvGenieacsNodeHandler',
'method' => 'nodeAddAfterSubmit'
),
'nodedel_before_submit' => array(
'class' => 'LCsvGenieacsNodeHandler',
'method' => 'nodeDelBeforeSubmit'
),
);
}
}