public function &__get($name) { if (preg_match('#^on[A-Z]#', $name)) { return $this->events->getCallbacksReference(lcfirst(substr($name, 2))); } }