API17

JArrayHelper::toObject

From Joomla! Documentation

Revision as of 14:43, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JArrayHelper::toObject/11.1 to API17:JArrayHelper::toObject without leaving a redirect: Robot: Moved page)

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JArrayHelper::toObject[edit]

Description[edit]

Utility function to map an array to a stdClass object.

Template: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[edit]

Template:SeeAlso:JArrayHelper::toObject [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />