JArrayHelper::toObject: Difference between revisions
From Joomla! Documentation
m moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Utility function to map an array to a stdClass object. | Utility function to map an array to a stdClass object. | ||
{{Description:JArrayHelper::toObject}} | {{subst:Description:JArrayHelper::toObject}} | ||
<source lang="php"> | <source lang="php"> | ||
public static function toObject ( | public static function toObject ( | ||
| Line 42: | Line 40: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | ||
* [[API17:JArrayHelper::toObject|Other versions of JArrayHelper::toObject]] | * [[API17:JArrayHelper::toObject|Other versions of JArrayHelper::toObject]] | ||
{{SeeAlso:JArrayHelper::toObject}} | {{subst:SeeAlso:JArrayHelper::toObject}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 14:46, 24 March 2017
JArrayHelper::toObject
Description
Utility function to map an array to a stdClass object.
{{subst:Description:JArrayHelper::toObject}}
public static function toObject (
&$array
$class= 'stdClass'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array The array to map. | |
| $class | string | 'stdClass' | Name of the class to create |
- Returns object The object mapped from the given array
- Defined on line 58 of libraries/joomla/utilities/arrayhelper.php
- Since

- Referenced by
See also
JArrayHelper::toObject source code on BitBucket
Class JArrayHelper
Subpackage Utilities- Other versions of JArrayHelper::toObject
{{subst:SeeAlso:JArrayHelper::toObject}}
User contributed notes
<CodeExamplesForm />