aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/plugin_api.php
blob: e021e15b2c96105a980babc4da9dcf672bba0c27 (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
<?php
/*
 * File: plugin_api.php
 * 
 * Plugin API contains the plugin base class and other interfaces to Ratatöskr.
 *
 * This file is part of Ratatöskr.
 * Ratatöskr is licensed unter the MIT / X11 License.
 * See "ratatoeskr/licenses/ratatoeskr" for more information.
 */

require_once(dirname(__FILE__) . "/db.php");


abstract class RatatoeskrPlugin
{
	private $id;
	protected $kvstorage;
	protected $smarty;
	
	public function __construct($id)
	{
		global $smarty;
		$this->id        = $id;
		$this->kvstorage = new PluginKVStorage($id);
		$this->smarty    = $smarty;
	}
	
	public function get_id() { return $this->id; }
	
	public function init() {}
	public function install() {}
	public function uninstall() {}
}

?>