12 $this->buildHandlerList();
15 protected function buildHandlerList(): void
28 $this->handlerListByPostText = array(
29 $shareClass::getPostText() => $shareClass,
30 $createTaskClass::getPostText() => $createTaskClass,
31 $createEntityClass::getPostText() => $createEntityClass,
32 $fileVersionClass::getPostText() => $fileVersionClass,
33 $taskInfoClass::getPostText() => $taskInfoClass,
35 $this->handlerListByType = array(
36 $shareClass::getType() => $shareClass,
37 $createTaskClass::getType() => $createTaskClass,
38 $createEntityClass::getType() => $createEntityClass,
39 $fileVersionClass::getType() => $fileVersionClass,
40 $taskInfoClass::getType() => $taskInfoClass,
48 if(isset($this->handlerListByPostText[$postText]))
50 $handler =
new $this->handlerListByPostText[$postText]();
60 if(isset($this->handlerListByType[$type]))
62 $handler =
new $this->handlerListByType[$type]();