API17

JArrayHelper: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<span class="editsection" style="font-size:76%;">
=={{JVer|11.1}} JArrayHelper==
<nowiki>[</nowiki>[[Description:JArrayHelper|Edit Descripton]]<nowiki>]</nowiki>
===Description===
</span>
 
{{Description:JArrayHelper}}
 
===Defined in===
libraries/joomla/utilities/arrayhelper.php
===Subpackage===
[[Subpackage Utilities/11.1|Utilities]]
===Extends===
===Extended by===
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Visibility
!Method name
!Method name
!Description
!Description
|-
|-
|[[JArrayHelper::_sortObjects/11.1|_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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|toInteger]]
|public static
|[[API17:JArrayHelper::toInteger|toInteger]]
|Function to convert array to integer values.  
|Function to convert array to integer values.  
|-
|-
|[[JArrayHelper::toObject/11.1|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/11.1|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===
* [[JArrayHelper|Other versions of this class]]
* {{JVer|11.1}} '''JArrayHelper source code''' on [[jplatform:utilities/arrayhelper.php|BitBucket]]
{{SeeAlso:JArrayHelper}}
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
<span class="editsection" style="font-size:76%;">
* [[API17:JArrayHelper|Other versions of JArrayHelper]]
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
===Examples===
===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=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JArrayHelper]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:21, 25 March 2017

Joomla 11.1 JArrayHelper

Description

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


User contributed notes

Code Examples