nxsl alert & event
-
Пытаюсь найти alert по key (FindAlarmByKey), при генерации алерта в EPP использую макросы
text_%i_%5проблема в составлении ключа в постобработке.
До %5 добраться можно так:
$event->parameters[5]как получить один из этих макросов:
%i Unique ID of event source object in hexadecimal form. Always prefixed with 0x and contains exactly 8 digits (for example 0x000029AC). %I Unique ID of event source object in decimal form.либо на что можно поменять их при генерации алерта, не поломав уникальность?
-
Для %I:
$node->idдля %i:
"0x" . right(d2x($node->id), 8, "0") -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login