-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.php
30 lines (24 loc) · 880 Bytes
/
Module.php
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
<?php
/************************************************************
* icarus v1.0-beta -- an IRC framework for PHP *
* Author: rintaun - Matthew J. Lanigan <rintaun@gmail.com> *
* *
* Copyright 2011 Matthew J. Lanigan. *
* See LICENSE file for licensing restrictions *
************************************************************/
if (!defined('_ICARUS_')) die('This script may not be invoked directly.' . "\n");
abstract class Module extends EventHandler {
private $sid = "";
protected $parent;
final public function __construct($parent, $name, $config)
{
$this->parent = $parent;
$this->_create($name, $config);
}
final public function __destruct()
{
$this->_destroy();
}
abstract function _create($name, $config);
abstract function _destroy();
}