Difference between revisions of "JArrayHelper"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JArrayHelper== | ||
+ | ===Description=== | ||
+ | {{Description:JArrayHelper}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JArrayHelper|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JArrayHelper|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::_sortObjects/11.1|_sortObjects]] | |[[JArrayHelper::_sortObjects/11.1|_sortObjects]] | ||
|Private callback function for sorting an array of objects on a key. | |Private callback function for sorting an array of objects on a key. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::fromObject/11.1|fromObject]] | |[[JArrayHelper::fromObject/11.1|fromObject]] | ||
|Utility function to map an object to an array. | |Utility function to map an object to an array. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::getColumn/11.1|getColumn]] | |[[JArrayHelper::getColumn/11.1|getColumn]] | ||
|Extracts a column from an array of arrays or objects. | |Extracts a column from an array of arrays or objects. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::getValue/11.1|getValue]] | |[[JArrayHelper::getValue/11.1|getValue]] | ||
|Utility function to return a value from a named array or a specified default. | |Utility function to return a value from a named array or a specified default. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::isAssociative/11.1|isAssociative]] | |[[JArrayHelper::isAssociative/11.1|isAssociative]] | ||
|Method to determine if an array is an associative array. | |Method to determine if an array is an associative array. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::sortObjects/11.1|sortObjects]] | |[[JArrayHelper::sortObjects/11.1|sortObjects]] | ||
|Utility function to sort an array of objects on a given field. | |Utility function to sort an array of objects on a given field. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::toInteger/11.1|toInteger]] | |[[JArrayHelper::toInteger/11.1|toInteger]] | ||
|Function to convert array to integer values. | |Function to convert array to integer values. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::toObject/11.1|toObject]] | |[[JArrayHelper::toObject/11.1|toObject]] | ||
|Utility function to map an array to a stdClass object. | |Utility function to map an array to a stdClass object. | ||
|- | |- | ||
+ | |public static | ||
|[[JArrayHelper::toString/11.1|toString]] | |[[JArrayHelper::toString/11.1|toString]] | ||
| | | | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/utilities/arrayhelper.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.arrayhelper' );</source> | <source lang="php">jimport( 'joomla.utilities.arrayhelper' );</source> | ||
===See also=== | ===See also=== | ||
− | * JArrayHelper source code | + | * {{JVer|11.1}} '''JArrayHelper source code''' on [[jplatform:utilities/arrayhelper.php|BitBucket]] |
− | * [[JArrayHelper|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Utilities/11.1|Utilities]] |
+ | * [[JArrayHelper|Other versions of JArrayHelper]] | ||
{{SeeAlso:JArrayHelper}} | {{SeeAlso:JArrayHelper}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JArrayHelper|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 62: | Line 69: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JArrayHelper]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JArrayHelper]]</noinclude> |
Revision as of 17:55, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JArrayHelper[edit]
Description[edit]
Template:Description:JArrayHelper [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | _sortObjects | Private callback function for sorting an array of objects on a key. |
public static | fromObject | Utility function to map an object to an array. |
public static | getColumn | Extracts a column from an array of arrays or objects. |
public static | getValue | Utility function to return a value from a named array or a specified default. |
public static | isAssociative | Method to determine if an array is an associative array. |
public static | sortObjects | Utility function to sort an array of objects on a given field. |
public static | toInteger | Function to convert array to integer values. |
public static | toObject | Utility function to map an array to a stdClass object. |
public static | toString |
- Defined in libraries/joomla/utilities/arrayhelper.php
Importing[edit]
jimport( 'joomla.utilities.arrayhelper' );
See also[edit]
- JArrayHelper source code on BitBucket
- Subpackage Utilities
- Other versions of JArrayHelper
Template:SeeAlso:JArrayHelper [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />