[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/system/debug/src/ -> JavascriptRenderer.php (summary)

(no description)

Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 133 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JavascriptRenderer:: (3 methods):
  __construct()
  renderHead()
  render()


Class: JavascriptRenderer  - X-Ref

Custom JavascriptRenderer for DebugBar

__construct(DebugBar $debugBar, $baseUrl = null, $basePath = null)   X-Ref
Class constructor.

param: \DebugBar\DebugBar  $debugBar  DebugBar instance
param: string              $baseUrl   The base URL from which assets will be served
param: string              $basePath  The path which assets are relative to

renderHead()   X-Ref
Renders the html to include needed assets

Only useful if Assetic is not used

return: string

render($initialize = true, $renderStackedData = true)   X-Ref
Returns the code needed to display the debug bar

AJAX request should not render the initialization code.

param: boolean  $initialize         Whether or not to render the debug bar initialization code
param: boolean  $renderStackedData  Whether or not to render the stacked data
return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer