diff options
author | Andrew Dolgov <[email protected]> | 2012-08-17 14:20:55 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-17 14:22:33 +0400 |
commit | 369dbc19d6ae35c97a2306ae4821c7812e2f24b2 (patch) | |
tree | fff54920611300f99e0898874e0de04c99ac5586 /classes/plugin.php | |
parent | 3d2c9f5adfdc51642143d9fecf31ee353735bb8e (diff) |
rework class system to use subdirectories
add placeholder plugin/hook system
Diffstat (limited to 'classes/plugin.php')
-rw-r--r-- | classes/plugin.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/classes/plugin.php b/classes/plugin.php new file mode 100644 index 000000000..b96874a20 --- /dev/null +++ b/classes/plugin.php @@ -0,0 +1,21 @@ +<?php +class Plugin { + protected $link; + protected $handler; + + function __construct($link, $handler) { + $this->link = $link; + $this->handler = $handler; + $this->initialize(); + } + + function initialize() { + + + } + + function add_listener($hook) { + $this->handler->add_listener($hook, $this); + } +} +?> |