Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (\Twig_Profiler_Profile $profile, $loaderOrEnv=null) | |
getWidgets () | |
getAssets () | |
collect () | |
getName () | |
getHtmlCallGraph () | |
getXdebugLink ($template, $line=1) | |
Fonctions membres publiques hérités de DataCollector | |
setDataFormatter (DataFormatterInterface $formater) | |
getDataFormatter () | |
getXdebugLink ($file, $line=1) | |
setVarDumper (DebugBarVarDumper $varDumper) | |
getVarDumper () | |
formatVar ($var) | |
formatDuration ($seconds) | |
formatBytes ($size, $precision=2) | |
getXdebugLinkTemplate () | |
setXdebugLinkTemplate ($xdebugLinkTemplate, $shouldUseAjax=false) | |
getXdebugShouldUseAjax () | |
getXdebugReplacements () | |
setXdebugReplacements ($xdebugReplacements) | |
setXdebugReplacement ($serverPath, $replacement) | |
Fonctions membres privées | |
computeData (\Twig_Profiler_Profile $profile) | |
Attributs privés | |
$profile | |
$loader | |
$templateCount | |
$blockCount | |
$macroCount | |
$templates | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de DataCollector | |
static | setDefaultDataFormatter (DataFormatterInterface $formater) |
static | getDefaultDataFormatter () |
static | setDefaultVarDumper (DebugBarVarDumper $varDumper) |
static | getDefaultVarDumper () |
Attributs protégés hérités de DataCollector | |
$dataFormater | |
$varDumper | |
$xdebugLinkTemplate = '' | |
$xdebugShouldUseAjax = false | |
$xdebugReplacements = array() | |
Collects data about rendered templates
A Twig_Extension_Profiler should be added to your Twig_Environment The root-Twig_Profiler_Profile-object should then be injected into this collector
you can optionally provide the Twig_Environment or the Twig_Loader to also create debug-links.
$env = new Twig_Environment($loader); // Or from a PSR11-container $profile = new Twig_Profiler_Profile(); $env->addExtension(new Twig_Extension_Profile($profile)); $debugbar->addCollector(new TwigProfileCollector($profile, $env)); // or: $debugbar->addCollector(new TwigProfileCollector($profile, $loader));
\Debugbar\Bridge\NamespacedTwigProfileCollector
instead for Twig 2.x and 3.x __construct | ( | \Twig_Profiler_Profile | $profile, |
$loaderOrEnv = null |
|||
) |
TwigProfileCollector constructor.
\Twig_Profiler_Profile | $profile | |
\Twig_LoaderInterface | \Twig_Environment | $loaderOrEnv |
Références TwigProfileCollector\$profile.
collect | ( | ) |
Called by the DebugBar when data needs to be collected
Implémente DataCollectorInterface.
Références TwigProfileCollector\computeData(), DataCollector\getDataFormatter(), et TwigProfileCollector\getHtmlCallGraph().
|
private |
Références TwigProfileCollector\$profile, DataCollector\getDataFormatter(), et TwigProfileCollector\getXdebugLink().
Référencé par TwigProfileCollector\collect().
getAssets | ( | ) |
Implémente AssetProvider.
getHtmlCallGraph | ( | ) |
Référencé par TwigProfileCollector\collect().
getName | ( | ) |
getWidgets | ( | ) |
Returns a hash where keys are control names and their values an array of options as defined in {
Implémente Renderable.
getXdebugLink | ( | $template, | |
$line = 1 |
|||
) |
Références $template, et null.
Référencé par TwigProfileCollector\computeData().
|
private |
|
private |
|
private |
|
private |
Référencé par TwigProfileCollector\__construct(), et TwigProfileCollector\computeData().
|
private |
|
private |