コード例 #1
0
ファイル: Event.php プロジェクト: suyuanen/trotri
 /**
  * 将本类注册到事件处理类
  * @param \tfc\ap\EventDispatcher $owner
  * @return void
  */
 public function attach(EventDispatcher $owner)
 {
     $this->_enabled = true;
     $this->_owner = $owner;
     $owner->attach($this);
 }