JUtility::parseAttributes: Difference between revisions
From Joomla! Documentation
Layout updates |
Updated to r1448:247ba8d88526 |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JUtility::parseAttributes|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JUtility::parseAttributes|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function parseAttributes ($string) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' array Key/Value pairs for the attributes | |||
array Key/Value pairs for the attributes | * '''Defined''' on line 121 of libraries/joomla/utilities/utility.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/utilities/utility.php | |||
* | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JUtility::parseAttributes source code''' on [[jplatform:utilities/utility.php#cl-113|BitBucket]] | |||
* {{JVer|11.1}} Class [[JUtility/11.1|JUtility]] | |||
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | |||
* [[JUtility::parseAttributes|Other versions of JUtility::parseAttributes]] | |||
{{SeeAlso:JUtility::parseAttributes}} | |||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JUtility::parseAttributes|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JUtility::parseAttributes|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
===User contributed notes=== | |||
=== | |||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 48: | Line 44: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JUtility]][[Category:JUtility::parseAttributes]]</noinclude> | <noinclude>[[Category:JUtility]][[Category:JUtility::parseAttributes]]</noinclude> | ||
Revision as of 02:56, 28 April 2011
JUtility::parseAttributes
Description
Method to extract key/value pairs out of a string with xml style attributes.
Template:Description:JUtility::parseAttributes [Edit Descripton]
public static function parseAttributes ($string)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $string | string | String containing xml style attributes |
- Returns array Key/Value pairs for the attributes
- Defined on line 121 of libraries/joomla/utilities/utility.php
- Since

See also
JUtility::parseAttributes source code on BitBucket
Class JUtility
Subpackage Utilities- Other versions of JUtility::parseAttributes
Template:SeeAlso:JUtility::parseAttributes [Edit See Also]
User contributed notes
<CodeExamplesForm />