public function getInstallHandler(Tiki_Profile_Object $object) { $type = $object->getType(); if (array_key_exists($type, $this->handlers)) { if ($this->allowedObjectTypes !== false && !in_array($type, $this->allowedObjectTypes)) { return null; } $class = $this->handlers[$type]; if (class_exists($class)) { return new $class($object, $this->userData); } } }
private function getInstallHandler(Tiki_Profile_Object $object) { $type = $object->getType(); if (array_key_exists($type, $this->handlers)) { $class = $this->handlers[$type]; if (class_exists($class)) { return new $class($object); } } }