25 final public static function buildFromAttachedObject(\
Bitrix\
Vote\
Attach $attachedObject)
29 throw new SystemException(
"Module {$attachedObject->getModuleId()} is not included.");
31 $className = str_replace(
'\\\\',
'\\', $attachedObject->getEntityType());
33 if (!is_a($className, Connector::class,
true))
38 $connector =
new $className($attachedObject->getEntityId());
40 if($connector instanceof Storable)
42 $connector->setStorage($attachedObject->getStorage());
53 return get_called_class();
static includeModule($moduleName)