API17

JArrayHelper::fromObject

From Joomla! Documentation

Revision as of 19:55, 23 April 2011 by Doxiki2 (talk | contribs) (Layout updates)

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

Description[edit]

Utility function to map an object to an array.

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

Since[edit]

Joomla 11.1

Synopsis[edit]

public static JArrayHelper::fromObject ($p_obj, $recurse=true, $regex=null)
Parameter Type Default Description
$p_obj object The source object
$recurse boolean true True to recurve through multi-level objects
$regex string null An optional regular expression to match on field names

Returns[edit]

array The array mapped from the given object

Defined in[edit]

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

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JArrayHelper::fromObject

Examples[edit]

<CodeExamplesForm />