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;

 

posted on 2017-11-30 17:15  amirong  阅读(114)  评论(0)    收藏  举报

导航