2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/includes/DebugBar/DataCollector/PhpInfoCollector.php
Laurent Destailleur c2badb57d7 NEW: Add module debugbar
2019-03-16 16:27:14 +01:00

52 lines
973 B
PHP

<?php
/*
* This file is part of the DebugBar package.
*
* (c) 2013 Maxime Bouroumeau-Fuseau
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DebugBar\DataCollector;
/**
* Collects info about PHP
*/
class PhpInfoCollector extends DataCollector implements Renderable
{
/**
* @return string
*/
public function getName()
{
return 'php';
}
/**
* @return array
*/
public function collect()
{
return array(
'version' => PHP_VERSION,
'interface' => PHP_SAPI
);
}
/**
* {@inheritDoc}
*/
public function getWidgets()
{
return array(
"php_version" => array(
"icon" => "code",
"tooltip" => "Version",
"map" => "php.version",
"default" => ""
),
);
}
}