diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-08-03 16:16:31 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-08-03 16:16:31 +0200 |
commit | 252d0d9d422b0ab6dd583022141f4874c98abc5f (patch) | |
tree | 3226cb847dea8ccaea6f8d1aa80b3a1099c7f584 /ratatoeskr/sys/plugin_api.php | |
parent | 2eeb281a46a7cdcd387ed69baaeafcceca4f8548 (diff) | |
download | ratatoeskr-cms-252d0d9d422b0ab6dd583022141f4874c98abc5f.tar.gz ratatoeskr-cms-252d0d9d422b0ab6dd583022141f4874c98abc5f.tar.bz2 ratatoeskr-cms-252d0d9d422b0ab6dd583022141f4874c98abc5f.zip |
Started to implement the plugin API.
Diffstat (limited to 'ratatoeskr/sys/plugin_api.php')
-rw-r--r-- | ratatoeskr/sys/plugin_api.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php new file mode 100644 index 0000000..e021e15 --- /dev/null +++ b/ratatoeskr/sys/plugin_api.php @@ -0,0 +1,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() {} +} + +?> |