1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:45:55 +00:00

rework class system to use subdirectories

add placeholder plugin/hook system
This commit is contained in:
Andrew Dolgov
2012-08-17 14:20:55 +04:00
parent 3d2c9f5adf
commit 369dbc19d6
29 changed files with 131 additions and 22 deletions

21
classes/plugin.php Normal file
View File

@@ -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);
}
}
?>