[ 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\DataFormatter; 12 13 /** 14 * Formats data to be outputed as string 15 */ 16 interface DataFormatterInterface 17 { 18 /** 19 * Transforms a PHP variable to a string representation 20 * 21 * @param mixed $data 22 * @return string 23 */ 24 function formatVar($data); 25 26 /** 27 * Transforms a duration in seconds in a readable string 28 * 29 * @param float $seconds 30 * @return string 31 */ 32 function formatDuration($seconds); 33 34 /** 35 * Transforms a size in bytes to a human readable string 36 * 37 * @param string $size 38 * @param integer $precision 39 * @return string 40 */ 41 function formatBytes($size, $precision = 2); 42 }
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 |