API17:JHtmlNumber::bytes
From Joomla! Documentation
(Difference between revisions)
(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> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function bytes ( |
| + | $bytes | ||
| + | $unit= 'auto' | ||
| + | $precision=2 | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 35: | Line 38: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' | |
| − | + | * '''Defined''' on line 36 of libraries/joomla/html/html/number.php | |
| − | + | ||
| − | libraries/joomla/html/html/number.php | + | |
| − | + | ||
| − | + | ||
===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> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<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
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.
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
-
JHtmlNumber::bytes source code on BitBucket
-
Class JHtmlNumber
-
Subpackage Html
- Other versions of JHtmlNumber::bytes
SeeAlso:JHtmlNumber::bytes [Edit See Also]
User contributed notes
<CodeExamplesForm />
