예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }