Atomik Event Browser

Atomik::dispatch()

Atomik::Dispatch::Start

Fired at the start of the method

  1. string &$uri

    The uri that is being dispatched.

  2. boolean &$allowPluggableApplication

    Whether pluggable applications are allowed during this dispatch.

  3. boolean &$cancel

    Set to true to cancel the dispatch process. Will exit Atomik.

function myAtomikDispatchStartHandler(&$uri, &$allowPluggableApplication, &$cancel)
{
    // your code
}

Atomik::listenEvent('Atomik::Dispatch::Start', 'myAtomikDispatchStartHandler');

Atomik::Dispatch::Uri

Fired once the uri has been computed. Do not use request_uri or request config keys but the event's params.

  1. string &$uri

    The uri that is being dispatched.

  2. array &$request

    Request parameters.

  3. boolean &$cancel

    Set to true to cancel the dispatch process. Will exit Atomik.

function myAtomikDispatchUriHandler(&$uri, &$request, &$cancel)
{
    // your code
}

Atomik::listenEvent('Atomik::Dispatch::Uri', 'myAtomikDispatchUriHandler');

Atomik::Dispatch::Before

Fired once the request has been routed and before the call to pre_dispatch.php.

  1. boolean &$cancel

    Set to true to cancel the dispatch process. Will exit Atomik.

function myAtomikDispatchBeforeHandler(&$cancel)
{
    // your code
}

Atomik::listenEvent('Atomik::Dispatch::Before', 'myAtomikDispatchBeforeHandler');

Atomik::Output::Before

Fired before content is echoed.

  1. string &$output

    The content that will be echoed

function myAtomikOutputBeforeHandler(&$output)
{
    // your code
}

Atomik::listenEvent('Atomik::Output::Before', 'myAtomikOutputBeforeHandler');

Atomik::Output::After

Fired after content has been echoed.

  1. string $output

    The content that has been echoed

function myAtomikOutputAfterHandler($output)
{
    // your code
}

Atomik::listenEvent('Atomik::Output::After', 'myAtomikOutputAfterHandler');

Atomik::Dispatch::After

Fired after the view (and the layout) has been rendered and before the call to pre_dispatch.php.

    function myAtomikDispatchAfterHandler()
    {
        // your code
    }

    Atomik::listenEvent('Atomik::Dispatch::After', 'myAtomikDispatchAfterHandler');