jommla事件部分
class JEventDispatcher extends JObject
{
$_observers
$_state
$_methods
$instance
public static function getInstance()
public function register($event, $handler)
{
$method = array('event' => $event, 'handler' => $handler);
$this->attach($method);
public function attach($observer)
{
$this->_methods[$method][] = $key;
浙公网安备 33010602011771号