26 final public static function buildFromAttachedObject(\
Bitrix\
Vote\
Attach $attachedObject)
30 throw new SystemException(
"Module {$attachedObject->getModuleId()} is not included.");
32 $className = str_replace(
'\\\\',
'\\', $attachedObject->getEntityType());
34 if (!is_a($className, Connector::class,
true))
39 $connector =
new $className($attachedObject->getEntityId());
41 if($connector instanceof Storable)
43 $connector->setStorage($attachedObject->getStorage());
54 return get_called_class();
static includeModule($moduleName)