Actions

API17

Difference between revisions of "JHtmlNumber::bytes"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlNumber::bytes|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlNumber::bytes|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlNumber::bytes ($bytes, $unit= 'auto', $precision=2)
+
public static function bytes (
 +
        $bytes
 +
        $unit= 'auto'
 +
        $precision=2
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 36 of libraries/joomla/html/html/number.php
===Defined in===
+
libraries/joomla/html/html/number.php (line 36)
+
* see source code in [[jplatform:html/html/number.php#cl-36|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtmlNumber::bytes source code''' on [[jplatform:html/html/number.php#cl-28|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlNumber/11.1|JHtmlNumber]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlNumber::bytes|Other versions of JHtmlNumber::bytes]]
 +
{{SeeAlso:JHtmlNumber::bytes}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlNumber::bytes|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlNumber::bytes|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlNumber/11.1|JHtmlNumber]]
+
===User contributed notes===
* [[JHtmlNumber::bytes|Other versions of this method]]
+
{{SeeAlso:JHtmlNumber::bytes}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 56: Line 57:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlNumber]][[Category:JHtmlNumber::bytes]]</noinclude>
 
<noinclude>[[Category:JHtmlNumber]][[Category:JHtmlNumber::bytes]]</noinclude>

Revision as of 21:08, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JHtmlNumber::bytes

Description

Converts bytes to more distinguishable formats such as: kilobytes, megabytes, etc.

Description:JHtmlNumber::bytes [Edit Descripton]

public static function bytes (
        $bytes
        $unit= 'auto'
        $precision=2
)
Parameter Type Default Description
$bytes
$unit 'auto'
$precision 2
  • Returns
  • Defined on line 36 of libraries/joomla/html/html/number.php

See also

SeeAlso:JHtmlNumber::bytes [Edit See Also]

User contributed notes

<CodeExamplesForm />