JUtility::parseAttributes: Difference between revisions
From Joomla! Documentation
Layout updates |
m preparing for archive only |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Method to extract key/value pairs out of a string with xml style attributes. | Method to extract key/value pairs out of a string with xml style attributes. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function parseAttributes ($string) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 22: | ||
|- | |- | ||
|} | |} | ||
* '''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 [[API17:JUtility|JUtility]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | |||
* | * [[API17:JUtility::parseAttributes|Other versions of JUtility::parseAttributes]] | ||
* [[JUtility::parseAttributes|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUtility::parseAttributes | category=JUtility::parseAttributes | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:56, 25 March 2017
JUtility::parseAttributes
Description
Method to extract key/value pairs out of a string with xml style attributes.
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
User contributed notes
Code Examples