Пример #1
0
 /**
  * @param Document $document
  * @param string $type
  * @return bool
  */
 protected function hasHandlers(Document $document, $type)
 {
     $result = false;
     foreach (array_keys($document->getStructure()->getFields()) as $fieldName) {
         $handlerConfig = $this->map->getHandlerConfig($document->getName(), $fieldName, $type);
         if (!empty($handlerConfig)) {
             $result = true;
             break;
         }
     }
     return $result;
 }