API17

Difference between revisions of "JArrayHelper"

From Joomla! Documentation

m (moving preparation)
m (preparing for archive only)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JArrayHelper==
 
=={{JVer|11.1}} JArrayHelper==
 
===Description===
 
===Description===
{{Description:JArrayHelper}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JArrayHelper|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 57: Line 55:
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
 
* [[API17:JArrayHelper|Other versions of JArrayHelper]]
 
* [[API17:JArrayHelper|Other versions of JArrayHelper]]
{{SeeAlso:JArrayHelper}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JArrayHelper
 
category=JArrayHelper
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*

Latest revision as of 20: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.

Joomla 11.1 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]


User contributed notes[edit]

Code Examples[edit]