Joomla! Programmierung/Programmierung/XML Manifeste/1.6/Komponenten
Aus Joomla! Dokumentation
[Bearbeiten] TESTING
Die folgende XML Datei befindet sich momentan im Joomla! SVN im branch testing, und dient lediglich dazu, die Funktionen des Installers zu testen.
Sie kann jedoch auch als ein "Vorgeschmack" darauf gesehen werden, "was wird"...
Quelle: Joomla!code SVN/testing/trunk/1.6/installertest/com_alpha/alpha.xml
<?xml version="1.0" encoding="UTF-8"?> <extension type="component" version="1.6" method="upgrade"> <!-- Note: we can use method="upgrade" to ensure an upgrade regardless of if it is a new install or an actual upgrade; Normal installs will behave like an install but upgrades will be treated appropriately even if the interface doesn't support it properly --> <!-- Generic Metadata --> <name>Alpha</name> <author>John Doe</author> <authorEmail>john.doe@example.org</authorEmail> <authorUrl>http://www.example.org</authorUrl> <copyright>(C) 2008 Copyright Info</copyright> <license>License Info</license> <version>1.2</version> <creationDate>March 2006</creationDate> <description>Extension Description</description> <!-- Installer Hooks --> <installfile>file.install.php</installfile> <!-- Deprecated in 1.6 --> <uninstallfile>file.uninstall.php</uninstallfile> <!-- Deprecated in 1.6 --> <scriptfile>file.script.php</scriptfile> <!-- New in 1.6 --> <!-- SQL Files --> <!-- Note: The Joomla! 1.0 query method is not supported in 1.6 --> <install> <!-- Runs on install --> <sql> <file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file> <file driver="mysql">sql/install.mysql.nonutf8.sql</file> </sql> </install> <uninstall> <!-- Runs on uninstall --> <sql> <file driver="mysql" charset="utf8" folder="sql">sql/uninstall.mysql.utf8.sql</file> <file driver="mysql" folder="sql">sql/uninstall.mysql.nonutf8.sql</file> </sql> </uninstall> <update> <!-- Runs on update; New in 1.6 --> <sql> <file driver="mysql" charset="utf8">sql/update.mysql.utf8.sql</file> <file driver="mysql">sql/update.mysql.nonutf8.sql</file> </sql> </update> <!-- Front end file, media and language specification --> <files folder="site"> <filename>alpha.php</filename> </files> <!-- Legacy 1.5 Language Support --> <!-- Note: Replace this with the actual path to the language file --> <!-- <languages folder="site"> <language tag="en-GB">language/en-GB/en-GB.com_alpha.ini</language> </languages> --> <media destination="com_alpha"> <filename>com_alpha.jpg</filename> </media> <administration> <!-- Administrator Menu --> <menu img="components/com_alpha/applications-internet-16.png">Alpha</menu> <submenu> <menu link="option=com_installer">Installer</menu> <menu link="option=com_users">Users</menu> </submenu> <!-- Administrator file and language specification; Note: administrator doesn't have media --> <files folder="admin"> <filename>admin.alpha.php</filename> <filename>image.png</filename> <filename>applications-internet.png</filename> <filename>applications-internet-16.png</filename> <folder>sql</folder> </files> <!-- Legacy 1.5 Language Support --> <!-- Note: Replace this with the actual path to the language file --> <!-- <languages folder="admin/language"> <language tag="en-GB">language/en-GB.com_alpha.ini</language> </languages> --> </administration> <!-- Extension Update Specification --> <update> <server type="extension" priority="1" name="Primary Update Server">http://update.example.com/update/alpha.xml</server> <!-- useful for single extensions --> <server type="extension" priority="2" name="Secondary Update Server">http://update2.example.com/update/alpha.xml</server> <!-- as above, backup server --> <server type="collection" priority="3" name="Update Collection">http://update.example.com/update/list.xml</server><!-- useful for collections of extensions --> <server type="xmlrpc" priority="4" name="Joomla! Extensions Directory">http://update.extensions.joomla.org</server><!-- useful for large collections --> </update> <!-- Extension Params --> <params> <param name="example" type="text" default="" label="Example Param" description="EXAMPLEPARAMDESC" /> </params> <!-- Tables --> <!-- These are used for backups to determine which tables to backup; ones marked optional are only backed up if they exist --> <tables> <table>#__alpha_install</table> <table type="optional">#__alpha_update</table> </tables> <!-- Dependencies --> <dependencies> <dependency type="platform" name="joomla" operator="=" version="1.5" /> </dependencies> </extension> </extension>