API17:JRegistryFormatXml
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|11.1}} JRegistryFormatXml== | ||
| + | ===Description=== | ||
| + | {{Description:JRegistryFormatXml}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JRegistryFormatXml|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRegistryFormatXml|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JRegistryFormatXml::objectToString/11.1|objectToString]] | |[[JRegistryFormatXml::objectToString/11.1|objectToString]] | ||
|Converts an object into an XML formatted string. | |Converts an object into an XML formatted string. | ||
|- | |- | ||
| + | |public | ||
|[[JRegistryFormatXml::stringToObject/11.1|stringToObject]] | |[[JRegistryFormatXml::stringToObject/11.1|stringToObject]] | ||
|Parse a XML formatted string and convert it into an object. | |Parse a XML formatted string and convert it into an object. | ||
|- | |- | ||
| + | |protected | ||
|[[JRegistryFormatXml::_getValueFromNode/11.1|_getValueFromNode]] | |[[JRegistryFormatXml::_getValueFromNode/11.1|_getValueFromNode]] | ||
|Method to get a PHP native value for a SimpleXMLElement object. | |Method to get a PHP native value for a SimpleXMLElement object. | ||
|- | |- | ||
| + | |protected | ||
|[[JRegistryFormatXml::_getXmlChildren/11.1|_getXmlChildren]] | |[[JRegistryFormatXml::_getXmlChildren/11.1|_getXmlChildren]] | ||
|Method to build a level of the XML string -- called recursively. | |Method to build a level of the XML string -- called recursively. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/registry/format/xml.php | ||
| + | * '''Extends''' [[JRegistryFormat/11.1|JRegistryFormat]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.registry.format.xml' );</source> | <source lang="php">jimport( 'joomla.registry.format.xml' );</source> | ||
===See also=== | ===See also=== | ||
| − | * JRegistryFormatXml source code | + | * {{JVer|11.1}} '''JRegistryFormatXml source code''' on [[jplatform:registry/format/xml.php|BitBucket]] |
| − | * [[JRegistryFormatXml|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Registry/11.1|Registry]] |
| + | * [[JRegistryFormatXml|Other versions of JRegistryFormatXml]] | ||
{{SeeAlso:JRegistryFormatXml}} | {{SeeAlso:JRegistryFormatXml}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JRegistryFormatXml|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JRegistryFormatXml|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 48: | Line 50: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRegistryFormatXml]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRegistryFormatXml]]</noinclude> | ||
Revision as of 18:08, 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.
JRegistryFormatXml
Description
Description:JRegistryFormatXml [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | objectToString | Converts an object into an XML formatted string. |
| public | stringToObject | Parse a XML formatted string and convert it into an object. |
| protected | _getValueFromNode | Method to get a PHP native value for a SimpleXMLElement object. |
| protected | _getXmlChildren | Method to build a level of the XML string -- called recursively. |
- Defined in libraries/joomla/registry/format/xml.php
- Extends JRegistryFormat
Importing
jimport( 'joomla.registry.format.xml' );
See also
-
JRegistryFormatXml source code on BitBucket
-
Subpackage Registry
- Other versions of JRegistryFormatXml
SeeAlso:JRegistryFormatXml [Edit See Also]
User contributed notes
<CodeExamplesForm />
