API17

Difference between revisions of "JUtility::parseAttributes"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (preparing for archive only)
 
(4 intermediate revisions by the same user 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.  
  
{{Description:JUtility::parseAttributes}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JUtility::parseAttributes|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
public static function parseAttributes ($string)
 
public static function parseAttributes ($string)
Line 29: Line 27:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JUtility::parseAttributes source code''' on [[jplatform:utilities/utility.php#cl-113|BitBucket]]
 
* {{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}} Class [[API17:JUtility|JUtility]]
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JUtility::parseAttributes|Other versions of JUtility::parseAttributes]]
+
* [[API17:JUtility::parseAttributes|Other versions of JUtility::parseAttributes]]
{{SeeAlso:JUtility::parseAttributes}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JUtility::parseAttributes|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JUtility::parseAttributes
 
category=JUtility::parseAttributes
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
Line 47: Line 43:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JUtility]][[Category:JUtility::parseAttributes]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:56, 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.

Joomla 11.1 JUtility::parseAttributes[edit]

Description[edit]

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 Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]