API17

JUtility::parseAttributes: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
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.  


{{Description:JUtility::parseAttributes}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JUtility::parseAttributes|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JUtility::parseAttributes ($string)
public static function parseAttributes ($string)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 27: Line 22:
|-
|-
|}
|}
===Returns===
* '''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
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/utility.php (line 120)
* see source code in [[jplatform:utilities/utility.php#cl-120|BitBucket]]
===Referenced by===
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JUtility::parseAttributes source code''' on [[jplatform:utilities/utility.php#cl-113|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JUtility::parseAttributes|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JUtility|JUtility]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JUtility/11.1|JUtility]]
* [[API17:JUtility::parseAttributes|Other versions of JUtility::parseAttributes]]
* [[JUtility::parseAttributes|Other versions of this method]]
 
{{SeeAlso:JUtility::parseAttributes}}
 
===Examples===
===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=*
namespace=CodeExample
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 03:56, 25 March 2017

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

See also


User contributed notes

Code Examples