API17:JArrayHelper
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
m (→User contributed notes: bad link repair) |
||
| (2 intermediate revisions by one user not shown) | |||
| 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|Other versions of | + | * {{JVer|11.1}} '''JArrayHelper source code''' on [[jplatform:utilities/arrayhelper.php|BitBucket]] |
| + | * {{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 60: | 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 JClasses]][[Category:Platform 11.1]][[Category:JArrayHelper]]</noinclude> |
Revision as of 13:28, 29 August 2012
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.
JArrayHelper
Description
Description:JArrayHelper [Edit Descripton]
Methods
| 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
jimport( 'joomla.utilities.arrayhelper' );
See also
-
JArrayHelper source code on BitBucket
-
Subpackage Utilities
- Other versions of JArrayHelper
SeeAlso:JArrayHelper [Edit See Also]
User contributed notes
<CodeExamplesForm />
