API17:JSimpleXMLElement::attributes
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 10: | Line 10: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public JSimpleXMLElement::attributes ($attribute=null) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 28: | Line 28: | ||
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 in=== | ===Defined in=== | ||
| − | libraries/joomla/utilities/simplexml.php | + | libraries/joomla/utilities/simplexml.php (line 431) |
| + | * see source code in [[jplatform:utilities/simplexml.php#cl-431|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== | ||
Revision as of 21:16, 23 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::attributes
Description
Get the an attribute of the element.
Description:JSimpleXMLElement::attributes [Edit Descripton]
Synopsis
public JSimpleXMLElement::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 in
libraries/joomla/utilities/simplexml.php (line 431)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JSimpleXMLElement::attributes
Examples
<CodeExamplesForm />
