CoreFiles by mySites.guru
openhandler.md23 lines, 968 bytes, from Joomla_4.1.3-Stable-Full_Package.zip
Raw History Compare with 4.1.2
md5
719bd67db630a1dcdb86bd81b05fd3dc
sha1
b393f3261642ccf436de4c3ca81b55b4f72cdc95
sha256
ff98cedb5fd1b3990ceea9e582d92da3ddad31d6e86cf23637b96933ff71f852
# Open handler

The debug bar can open previous sets of collected data which were stored using
a storage handler (see previous section). To do so, it needs to be provided an
url to an open handler.

An open handler must respect a very simple protocol. The default implementation
is `DebugBar\OpenHandler`.

    $openHandler = new DebugBar\OpenHandler($debugbar);
    $openHandler->handle();

Calling `handle()` will use data from the `$_REQUEST` array and echo the output.
The function also supports input from other source if you provide an array as
first argument. It can also return the data instead of echoing (use false as
second argument) and not send the content-type header (use false as third argument).

One you have setup your open handler, tell the `JavascriptRenderer` its url.

    $renderer->setOpenHandlerUrl('open.php');

This adds a button in the top right corner of the debug bar which allows you
to browse and open previous sets of collected data.

The same content is in 3 releases, Joomla 4.1.3-rc1 to 4.1.4-rc1. See them all, or every version of this file.