Actions

API16

JParameter/setXML

From Joomla! Documentation

< API16:JParameter
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.

Contents

Description

Sets the XML object from custom xml files.

[Edit Descripton]

Description:JParameter/setXML

Syntax

setXML(&$xml)
Parameter Name Default Value Description
&$xml An XML object.

Defined in

libraries/joomla/html/parameter.php

Importing

jimport( 'joomla.html.parameter' );

Source Body

public function setXML(&$xml)
{
        if (is_object($xml)) {
                if ($group = $xml->attributes('group')) {
                        $this->_xml[$group] = $xml;
                } else {
                        $this->_xml['_default'] = $xml;
                }
 
                if ($dir = $xml->attributes('addpath')) {
                        $this->addElementPath(JPATH_ROOT . str_replace('/', DS, $dir));
                }
        }
}

[Edit See Also] SeeAlso:JParameter/setXML

Examples

<CodeExamplesForm />