blob: caf7527e33eaea1141975ea36717d34dd6efdce9 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
|
<?php
/**
* Abstract class to define a Piwik_Plugin.
* Any plugin has to at least implement the abstract methods of this class.
*/
abstract class Piwik_Plugin
{
function __construct()
{
}
/**
* Returns the plugin details
*/
abstract function getInformation();
/**
* Returns the list of hooks registered with the methods names
*/
abstract function getListHooksRegistered();
/**
* Returns the names of the required plugins
*/
public function getListRequiredPlugins()
{
return array();
}
/**
* Install the plugin
* - create tables
* - update existing tables
* - etc.
*/
public function install()
{
return;
}
/**
* Remove the created resources during the install
*/
public function uninstall()
{
return;
}
}
?>
|