PCR-360 Wiki
2026.1 2025.2 2025.1 2024.2
2026.1 2025.2 2025.1 2024.2

Custom Event

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

Custom Event
PHP
/**
* Event: Custom Event Name
* Listener Class: Core Model Event
* Listener Method: eventCustom
*/

PCR_Event::attachDb(
    'custom-event-name',
    ['Core_Model_Event' => 'eventCustom']
);
PCR_Event::trigger(
    'custom-event-name',
    [
        'custom_identifier' => 'identifier used on Custom Event',
        // ... Any other params for Custom Event Logic ...
    ]
);