Actions

API17

Difference between revisions of "JArrayHelper::fromObject"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JArrayHelper::fromObject|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JArrayHelper::fromObject|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JArrayHelper::fromObject ($p_obj, $recurse=true, $regex=null)
+
public static function fromObject (
 +
        $p_obj
 +
        $recurse=true
 +
        $regex=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 34: Line 35:
 
|string
 
|string
 
|null
 
|null
|An optional regular expression to match on field names  
+
|An optional regular expression to match on field names
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array The array mapped from the given object
array The array mapped from the given object
+
* '''Defined''' on line 105 of libraries/joomla/utilities/arrayhelper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/arrayhelper.php (line 105)
+
* see source code in [[jplatform:utilities/arrayhelper.php#cl-105|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JArrayHelper::fromObject source code''' on [[jplatform:utilities/arrayhelper.php#cl-97|BitBucket]]
 +
* {{JVer|11.1}} Class [[JArrayHelper/11.1|JArrayHelper]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JArrayHelper::fromObject|Other versions of JArrayHelper::fromObject]]
 +
{{SeeAlso:JArrayHelper::fromObject}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::fromObject|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::fromObject|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JArrayHelper/11.1|JArrayHelper]]
+
===User contributed notes===
* [[JArrayHelper::fromObject|Other versions of this method]]
+
{{SeeAlso:JArrayHelper::fromObject}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 58: Line 58:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::fromObject]]</noinclude>
 
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::fromObject]]</noinclude>

Revision as of 20:10, 27 April 2011

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::fromObject

Description

Utility function to map an object to an array.

Description:JArrayHelper::fromObject [Edit Descripton]

public static function 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 array The array mapped from the given object
  • Defined on line 105 of libraries/joomla/utilities/arrayhelper.php
  • Since Joomla 11.1

See also

SeeAlso:JArrayHelper::fromObject [Edit See Also]

User contributed notes

<CodeExamplesForm />