Actions

API17

Difference between revisions of "JArrayHelper::toObject"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (moving preparation)
 
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JArrayHelper::toObject|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JArrayHelper::toObject|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JArrayHelper::toObject (&$array, $class= 'stdClass')
+
public static function toObject (
 +
        &$array
 +
        $class= 'stdClass'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 29:
 
|string
 
|string
 
|'stdClass'
 
|'stdClass'
|$calss Name of the class to create  
+
|Name of the class to create
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object The object mapped from the given array
object The object mapped from the given array
+
* '''Defined''' on line 58 of libraries/joomla/utilities/arrayhelper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/arrayhelper.php
+
* '''Referenced by'''
===Referenced by===
+
** [[API17:JModelAdmin::getItem|JModelAdmin::getItem]]
* [[JModelAdmin/getItem/11.1|JModelAdmin::getItem]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JArrayHelper::toObject source code''' on [[jplatform:utilities/arrayhelper.php#cl-50|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JArrayHelper|JArrayHelper]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
 +
* [[API17:JArrayHelper::toObject|Other versions of JArrayHelper::toObject]]
 +
{{SeeAlso:JArrayHelper::toObject}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::toObject|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::toObject|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JArrayHelper/11.1|JArrayHelper]]
+
===User contributed notes===
* [[JArrayHelper::toObject|Other versions of this method]]
+
{{SeeAlso:JArrayHelper::toObject}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 53: Line 54:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::toObject]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 18:44, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JArrayHelper::toObject

Description

Utility function to map an array to a stdClass object.

Description:JArrayHelper::toObject [Edit Descripton]

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

SeeAlso:JArrayHelper::toObject [Edit See Also]

User contributed notes

<CodeExamplesForm />