Actions

API17

Difference between revisions of "JSimpleXMLElement::attributes"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement::attributes|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement::attributes|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JSimpleXMLElement->attributes ($attribute=null)
+
public function attributes ($attribute=null)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 25: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed If an attribute is given will return the attribute if it exist. If no attribute is given will return the complete attributes array
mixed If an attribute is given will return the attribute if it exist. If no attribute is given will return the complete attributes array
+
* '''Defined''' on line 422 of libraries/joomla/utilities/simplexml.php
===Defined in===
+
libraries/joomla/utilities/simplexml.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JSimpleXMLElement::attributes source code''' on [[jplatform:utilities/simplexml.php#cl-414|BitBucket]]
 +
* {{JVer|11.1}} Class [[JSimpleXMLElement/11.1|JSimpleXMLElement]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JSimpleXMLElement::attributes|Other versions of JSimpleXMLElement::attributes]]
 +
{{SeeAlso:JSimpleXMLElement::attributes}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::attributes|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::attributes|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JSimpleXMLElement/11.1|JSimpleXMLElement]]
+
===User contributed notes===
* [[JSimpleXMLElement::attributes|Other versions of this method]]
+
{{SeeAlso:JSimpleXMLElement::attributes}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 45: Line 43:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::attributes]]</noinclude>
 
<noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::attributes]]</noinclude>

Revision as of 21:41, 27 April 2011

Replacement filing cabinet.png
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.

Joomla 11.1 JSimpleXMLElement::attributes

Description

Get the an attribute of the element.

Description:JSimpleXMLElement::attributes [Edit Descripton]

public function attributes ($attribute=null)
Parameter Type Default Description
$attribute string null The name of the attribute
  • Returns mixed If an attribute is given will return the attribute if it exist. If no attribute is given will return the complete attributes array
  • Defined on line 422 of libraries/joomla/utilities/simplexml.php

See also

SeeAlso:JSimpleXMLElement::attributes [Edit See Also]

User contributed notes

<CodeExamplesForm />