Пример #1
0
 private function prepareTargetList()
 {
     foreach ($this->allowedTargetList->getSections() as $section) {
         $name = $section->getName();
         $sections[$name] = array();
         foreach ($section->getTargetList() as $targetName => $target) {
             $targetEntity = $this->targetDao->findTarget($target);
             if (!$targetEntity) {
                 $targetEntity = $this->targetDao->createBlankTarget($target);
             }
             $this->preparedTargetList[$targetEntity->id] = $targetEntity;
             $this->preparedTargetSections[$name][$targetName] = $targetEntity;
         }
     }
 }