Difference between revisions of "JArrayHelper"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (preparing for archive only) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | =={{JVer|11.1}} JArrayHelper== | |
− | + | ===Description=== | |
− | + | ||
− | {{ | + | |
− | == | ||
− | |||
− | === | ||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JArrayHelper::_sortObjects | + | |public static |
+ | |[[API17:JArrayHelper::_sortObjects|_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. | ||
|- | |- | ||
− | |[[JArrayHelper::fromObject | + | |public static |
+ | |[[API17:JArrayHelper::fromObject|fromObject]] | ||
|Utility function to map an object to an array. | |Utility function to map an object to an array. | ||
|- | |- | ||
− | |[[JArrayHelper::getColumn | + | |public static |
+ | |[[API17:JArrayHelper::getColumn|getColumn]] | ||
|Extracts a column from an array of arrays or objects. | |Extracts a column from an array of arrays or objects. | ||
|- | |- | ||
− | |[[JArrayHelper::getValue | + | |public static |
+ | |[[API17:JArrayHelper::getValue|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. | ||
|- | |- | ||
− | |[[JArrayHelper::isAssociative | + | |public static |
+ | |[[API17:JArrayHelper::isAssociative|isAssociative]] | ||
|Method to determine if an array is an associative array. | |Method to determine if an array is an associative array. | ||
|- | |- | ||
− | |[[JArrayHelper::sortObjects | + | |public static |
+ | |[[API17:JArrayHelper::sortObjects|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. | ||
|- | |- | ||
− | |[[JArrayHelper::toInteger | + | |public static |
+ | |[[API17:JArrayHelper::toInteger|toInteger]] | ||
|Function to convert array to integer values. | |Function to convert array to integer values. | ||
|- | |- | ||
− | |[[JArrayHelper::toObject | + | |public static |
+ | |[[API17:JArrayHelper::toObject|toObject]] | ||
|Utility function to map an array to a stdClass object. | |Utility function to map an array to a stdClass object. | ||
|- | |- | ||
− | |[[JArrayHelper::toString | + | |public static |
+ | |[[API17:JArrayHelper::toString|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=== | ||
− | * [[ | + | * {{JVer|11.1}} '''JArrayHelper source code''' on [[jplatform:utilities/arrayhelper.php|BitBucket]] |
− | {{ | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]] |
− | + | * [[API17:JArrayHelper|Other versions of JArrayHelper]] | |
− | + | ||
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JArrayHelper | category=JArrayHelper | ||
− | + | namespace=CodeExample | |
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:21, 24 March 2017
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]
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
User contributed notes[edit]
Code Examples[edit]