API17:JSimpleXMLElement::addAttribute
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JSimpleXMLElement::addAttribute|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JSimpleXMLElement::addAttribute|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function addAttribute ( |
| + | $name | ||
| + | $value | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 30: | Line 32: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' | |
| − | + | * '''Defined''' on line 474 of libraries/joomla/utilities/simplexml.php | |
| − | + | ||
| − | libraries/joomla/utilities/simplexml.php | + | |
| − | + | ||
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JSimpleXMLElement::addAttribute source code''' on [[jplatform:utilities/simplexml.php#cl-466|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JSimpleXMLElement/11.1|JSimpleXMLElement]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
| + | * [[JSimpleXMLElement::addAttribute|Other versions of JSimpleXMLElement::addAttribute]] | ||
| + | {{SeeAlso:JSimpleXMLElement::addAttribute}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::addAttribute|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::addAttribute|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 51: | Line 51: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::addAttribute]]</noinclude> | <noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::addAttribute]]</noinclude> | ||
Revision as of 21:41, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JSimpleXMLElement::addAttribute
Description
Adds an attribute to the element.
Description:JSimpleXMLElement::addAttribute [Edit Descripton]
public function addAttribute ( $name $value )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | ||
| $value | array | $attrs |
- Returns
- Defined on line 474 of libraries/joomla/utilities/simplexml.php
See also
-
JSimpleXMLElement::addAttribute source code on BitBucket
-
Class JSimpleXMLElement
-
Subpackage Utilities
- Other versions of JSimpleXMLElement::addAttribute
SeeAlso:JSimpleXMLElement::addAttribute [Edit See Also]
User contributed notes
<CodeExamplesForm />
