Difference between revisions of "JUtility::parseAttributes"
From Joomla! Documentation
m (→See also: moving preparation) |
m (clean up) |
||
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. | ||
− | {{Description:JUtility::parseAttributes}} | + | {{subst:Description:JUtility::parseAttributes}} |
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function parseAttributes ($string) | public static function parseAttributes ($string) | ||
Line 32: | Line 30: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | ||
* [[API17:JUtility::parseAttributes|Other versions of JUtility::parseAttributes]] | * [[API17:JUtility::parseAttributes|Other versions of JUtility::parseAttributes]] | ||
− | {{SeeAlso:JUtility::parseAttributes}} | + | {{subst:SeeAlso:JUtility::parseAttributes}} |
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> |
Revision as of 10:23, 24 March 2017
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.
JUtility::parseAttributes[edit]
Description[edit]
Method to extract key/value pairs out of a string with xml style attributes.
{{subst:Description:JUtility::parseAttributes}}
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[edit]
JUtility::parseAttributes source code on BitBucket
Class JUtility
Subpackage Utilities
- Other versions of JUtility::parseAttributes
{{subst:SeeAlso:JUtility::parseAttributes}}
User contributed notes[edit]
<CodeExamplesForm />