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:
21
classes/plugin.php
Normal file
21
classes/plugin.php
Normal 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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user