Joomla! Programmierung/Framework/JSimpleXMLElement/attributes

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

JSimpleXMLElement/attributes ToDo Beschreibung

Der DocComment dient nur zur Referenz - bitte entfernen
/**
	 * Get the an attribute of the element
	 *
	 * @param string $attribute 	The name of the attribute
	 *
	 * @access public
	 * @return mixed If an attribute is given will return the attribute if it exist.
	 * 				 If no attribute is given will return the complete attributes array
	 */

Inhaltsverzeichnis

[Bearbeiten] Syntax

attributes( [$attribute] )
  • @return mixed If an attribute is given will return the attribute if it exist.
  • @since Joomla 1.5
Parameter Datentyp Beschreibung Standardwert
[$attribute] string The name of the attribute null

[Bearbeiten] Beispiele

ToDo Beispiele Baby...

//-- Dein Beispiel

[Bearbeiten] Quellcode

JSimpleXMLElement->attributes in Joomla! 2.5.4

Folder blue.png libraries

  • Folder red.png joomla
    • Folder green.png utilities
      • File php.png simplexml.php
  1. public function attributes($attribute = null)
  2. {
  3. // Deprecation warning.
  4. JLog::add('JSimpleXMLElement::attributes() is deprecated.', JLog::WARNING, 'deprecated');
  5.  
  6. if (!isset($attribute))
  7. {
  8. return $this->_attributes;
  9. }
  10.  
  11. return isset($this->_attributes[$attribute]) ? $this->_attributes[$attribute] : null;
  12. }

[Bearbeiten] Siehe auch

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sonstiges
Team Navigation
Werkzeuge