[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * This file is part of the DebugBar package. 4 * 5 * (c) 2013 Maxime Bouroumeau-Fuseau 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 namespace DebugBar\DataCollector; 12 13 /** 14 * Collects info about PHP 15 */ 16 class PhpInfoCollector extends DataCollector implements Renderable 17 { 18 /** 19 * @return string 20 */ 21 public function getName() 22 { 23 return 'php'; 24 } 25 26 /** 27 * @return array 28 */ 29 public function collect() 30 { 31 return array( 32 'version' => implode('.', [PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION]), 33 'interface' => PHP_SAPI 34 ); 35 } 36 37 /** 38 * {@inheritDoc} 39 */ 40 public function getWidgets() 41 { 42 return array( 43 "php_version" => array( 44 "icon" => "code", 45 "tooltip" => "Version", 46 "map" => "php.version", 47 "default" => "" 48 ), 49 ); 50 } 51 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |