API17

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}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JArrayHelper::toObject|Edit Descripton]]<nowiki>]</nowiki>
</span>
<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}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::toObject|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 14:46, 24 March 2017

Joomla 11.1 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 Joomla 11.1
  • Referenced by

See also

{{subst:SeeAlso:JArrayHelper::toObject}}

User contributed notes

<CodeExamplesForm />