API17

JArrayHelper::toObject: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
Doxiki2 (talk | contribs)
Layout updates
Line 35: Line 35:
object The object mapped from the given array
object The object mapped from the given array
===Defined in===
===Defined in===
libraries/joomla/utilities/arrayhelper.php
libraries/joomla/utilities/arrayhelper.php (line 58)
* see source code in [[jplatform:utilities/arrayhelper.php#cl-58|BitBucket]]
===Referenced by===
===Referenced by===
* [[JModelAdmin/getItem/11.1|JModelAdmin::getItem]]
* [[JModelAdmin::getItem/11.1|JModelAdmin::getItem]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">

Revision as of 00:55, 24 April 2011

Joomla 11.1 JArrayHelper::toObject

Description

Utility function to map an array to a stdClass object.

Template:Description:JArrayHelper::toObject [Edit Descripton]

Since

Joomla 11.1

Synopsis

public static JArrayHelper::toObject (&$array, $class= 'stdClass')
Parameter Type Default Description
&$array array $array The array to map.
$class string 'stdClass' $calss Name of the class to create

Returns

object The object mapped from the given array

Defined in

libraries/joomla/utilities/arrayhelper.php (line 58)

Referenced by

See also

[Edit See Also]

Template:SeeAlso:JArrayHelper::toObject

Examples

<CodeExamplesForm />