Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2022.2

The Notification Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Code Block
languagephp
titleNotification
linenumberstrue
PCR_Event::attachDb(
    "some-notification",
    ["Core_Model_Notification" => "eventSend"]
);
PCR_Event::trigger(
    "some-notification",
    [
        "notification" => 35,
        "filter" => {
            /**
             * Hash vaiables replaced in Notification Body of other fields
             * ##HASH_VARIABLE## or ##SENDTO_EMAIL##
             */
            "HASH_VARIABLE1" => "this is a variable",
            "SENDTO_EMAIL" => "test@test.com",
        },



        "eventBroadcastBy" => "12345",
        "eventBroadcastTime" => "Sep 30, 2022, 11:23 am",
        "eventBroadcastDayofWeek" => "5",
        "eventBroadcastHourMin" => "1123",
     ]
);