JArrayHelper/1.5

From Joomla! Documentation
< JArrayHelper(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
(Layout updates)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} 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>
{{Description:JArrayHelper}}
 
===Defined in===
 
libraries/joomla/utilities/arrayhelper.php
 
===Subpackage===
 
[[Subpackage Utilities/1.5|Utilities]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JArrayHelper::toString/1.5|toString]]
 
|[[JArrayHelper::toString/1.5|toString]]
 
|
 
|
 
|-
 
|-
 +
|public
 
|[[JArrayHelper::_sortObjects/1.5|_sortObjects]]
 
|[[JArrayHelper::_sortObjects/1.5|_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
 
|[[JArrayHelper::fromObject/1.5|fromObject]]
 
|[[JArrayHelper::fromObject/1.5|fromObject]]
 
|Utility function to map an object to an array.  
 
|Utility function to map an object to an array.  
 
|-
 
|-
 +
|public
 
|[[JArrayHelper::getColumn/1.5|getColumn]]
 
|[[JArrayHelper::getColumn/1.5|getColumn]]
 
|Extracts a column from an array of arrays or objects.  
 
|Extracts a column from an array of arrays or objects.  
 
|-
 
|-
 +
|public
 
|[[JArrayHelper::getValue/1.5|getValue]]
 
|[[JArrayHelper::getValue/1.5|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
 
|[[JArrayHelper::sortObjects/1.5|sortObjects]]
 
|[[JArrayHelper::sortObjects/1.5|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
 
|[[JArrayHelper::toInteger/1.5|toInteger]]
 
|[[JArrayHelper::toInteger/1.5|toInteger]]
 
|Function to convert array to integer values.  
 
|Function to convert array to integer values.  
 
|-
 
|-
 +
|public
 
|[[JArrayHelper::toObject/1.5|toObject]]
 
|[[JArrayHelper::toObject/1.5|toObject]]
 
|Utility function to map an array to a stdClass object.  
 
|Utility function to map an array to a stdClass object.  
 
|-
 
|-
 
|}
 
|}
 +
* '''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|1.5}} '''JArrayHelper''' on [http://api.joomla.org/Joomla-Framework/Utilities/JArrayHelper.html api.joomla.org]
 +
* {{JVer|1.5}} '''JArrayHelper source code''' on [[jframework15:utilities/arrayhelper.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Utilities/1.5|Utilities]]
 +
* [[JArrayHelper|Other versions of 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>
{{SeeAlso:JArrayHelper}}
+
===User contributed notes===
* [[JArrayHelper|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Utilities/JArrayHelper.html JArrayHelper on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 58: Line 66:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JArrayHelper]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JArrayHelper]]</noinclude>

Revision as of 18:05, 25 April 2011

Joomla 1.5 JArrayHelper

Description

Description:JArrayHelper [Edit Descripton]

Methods

Visibility Method name Description
public toString
public _sortObjects Private callback function for sorting an array of objects on a key.
public fromObject Utility function to map an object to an array.
public getColumn Extracts a column from an array of arrays or objects.
public getValue Utility function to return a value from a named array or a specified default.
public sortObjects Utility function to sort an array of objects on a given field.
public toInteger Function to convert array to integer values.
public toObject Utility function to map an array to a stdClass object.
  • Defined in libraries/joomla/utilities/arrayhelper.php

Importing

jimport( 'joomla.utilities.arrayhelper' );

See also

SeeAlso:JArrayHelper [Edit See Also]

User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox