PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
maximebf
/
debugbar
/
src
/
DebugBar
/
DataCollector
<?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 the current localization state */ class LocalizationCollector extends DataCollector implements Renderable { /** * Get the current locale * * @return string */ public function getLocale() { return setlocale(LC_ALL, 0); } /** * Get the current translations domain * * @return string */ public function getDomain() { return textdomain(); } /** * @return array */ public function collect() { return array( 'locale' => $this->getLocale(), 'domain' => $this->getDomain(), ); } /** * @return string */ public function getName() { return 'localization'; } /** * @return array */ public function getWidgets() { return array( 'domain' => array( 'icon' => 'bookmark', 'map' => 'localization.domain', ), 'locale' => array( 'icon' => 'flag', 'map' => 'localization.locale', ) ); } }
[-] MemoryCollector.php
[edit]
[-] AggregatedCollector.php
[edit]
[+]
..
[-] TimeDataCollector.php
[edit]
[-] PhpInfoCollector.php
[edit]
[-] RequestDataCollector.php
[edit]
[-] DataCollectorInterface.php
[edit]
[-] DataCollector.php
[edit]
[-] ConfigCollector.php
[edit]
[-] Renderable.php
[edit]
[-] AssetProvider.php
[edit]
[+]
PDO
[-] LocalizationCollector.php
[edit]
[-] ExceptionsCollector.php
[edit]
[-] MessagesAggregateInterface.php
[edit]
[-] MessagesCollector.php
[edit]