2namespace Bitrix\Vote\Attachment;
4use Bitrix\Main\Localization\Loc;
5use Bitrix\Main\ArgumentNullException;
6use Bitrix\Main\ArgumentTypeException;
10Loc::loadMessages(__FILE__);
33 $attach =
new Attach($attach);
34 $attach->setVote($id);
60 $attach =
new Attach($attach);
61 $attach->setStorage($voteParams[
"CHANNEL_ID"]);
81 foreach (
$res as $attach)
84 $res->setVote($attach[1][
"ID"]);
85 $return[$attach[0][
"ID"]] =
$res;
99 foreach ($votes as $v)
107 '=ENTITY_TYPE' => $entityType,
111 return $attaches[array_key_first($attaches)] ??
null;
static loadFromVoteId(array $attach, $id)
static loadEmptyAttach(array $attach, array $voteParams)
static loadFirstFromEntity(string $moduleId, string $entityType, int $entityId)
static loadFromAttachId($id)
static loadFromEntity(array $filter)
static detachByFilter(array $filter)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)