Documentation

belongsToEntity

boolean public
\Bitrix\Vote\Uf\Manager::belongsToEntity(
 \Bitrix\Vote\Attachment\Attach $attachedObject,
 string $entityType,
 integer $entityId
);

Method checks if object attached to poll belongs to an entity. Non-static method.

Parameters

ParameterDescriptionVersion
$attachedObjectAttached object.
$entityTypeEntity type (for example, blog_post).
$entityIdEntity ID.

Example



© «Bitrix24», 2001-2024
Up