This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dev:284:helloworld [15.08.2015 21:31] – [info.php (currently still needed)] forgot to remove the German version in the last commit mrbaseman | en:dev:284:helloworld [17.08.2015 21:17] (current) – ready with translation - removed fixme mrbaseman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
- | |||
====== Hello Classic World - Project ====== | ====== Hello Classic World - Project ====== | ||
.. The classic example addon. Here, too, very much will change. In principle, however the previous, old system is is still fully compatible at least for 2.8.4. For this reason also the first description of an addon to the conventional method, however, already with new techniques and, unfortunately, | .. The classic example addon. Here, too, very much will change. In principle, however the previous, old system is is still fully compatible at least for 2.8.4. For this reason also the first description of an addon to the conventional method, however, already with new techniques and, unfortunately, | ||
Line 44: | Line 42: | ||
</ | </ | ||
- | ==== info.ini (erforderlich) ==== | + | ==== info.ini (required) ==== |
- | Diese Datei enthält ausschließlich Informationen über das aktuelle | + | This file contains only information about the current |
- | Ausführlichere Informationen müssen | + | For more detailed information must be provided |
- | **// | + | **// |
- | **// | + | **// |
- | **// | + | **// |
- | **// | + | **// |
- | :!: **Versionsnummern müssen ausschließlich | + | :!: **Version numbers must only be given in a format that is compatible with the PHP function |
<code ini info.ini> | <code ini info.ini> | ||
Line 92: | Line 90: | ||
</ | </ | ||
==== install-struct.sql ==== | ==== install-struct.sql ==== | ||
- | :!: **Diese Datei wird nur benötigt, wenn das Addon eigene Datenbanktabellen erhalten soll!** | + | :!: **This file is only needed if the addon is to get their own database tables!** |
- | [[dev: | + | [[dev: |
- | Die Musterdateien für Install / Upgrade / Uninstall | + | The sample files for Install / Upgrade / Uninstall |
- | Sollte die Datei // | + | If the file // |
<file sql install-struct.sql> | <file sql install-struct.sql> | ||
Line 137: | Line 135: | ||
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
</ | </ | ||
- | ==== install.php (erforderlich) ==== | + | ==== install.php (required) ==== |
- | Die Installation eines Addons erfolgt grundsätzlich in und durch Core-Methoden. | + | The installation of an Addon basically is done by core methods. Only pure Addon specific things, such as creating new database tables are created by this file. |
- | Erst rein addonspezifische Dinge, wie das Anlegen von neuen Datenbanktabellen werden durch diese Datei übernommen. | + | |
<code php install.php> | <code php install.php> | ||
<?php | <?php | ||
Line 159: | Line 156: | ||
/* **** END INSTALL ********************************************************* */ | /* **** END INSTALL ********************************************************* */ | ||
- | </ | + | </ |
- | ==== uninstall.php (erforderlich) ==== | + | ==== uninstall.php (required) ==== |
- | Auch die Deinstallation eines Addons wird größtenteils durch Core-Methoden erledigt. Diese Datei muss eigentlich nur dafür sorgen, dass alles, was außerhalb des Addonverzeichnisses oder in Tabellen, die nicht zum Addon gehören | + | The uninstall of an Addon is mostly done by core methods, too. This file must actually only ensure that everything outside the addon directory |
- | :!: **Es ist grundsätzlich | + | :!: **It is generally |
- | + | ||
<code php uninstall.php> | <code php uninstall.php> | ||
<?php | <?php | ||
Line 185: | Line 182: | ||
/* **** END UNINSTALL ******************************************************* */ | /* **** END UNINSTALL ******************************************************* */ | ||
- | </ | + | </ |
- | ==== upgrade.php (erforderlich) ==== | + | ==== upgrade.php (required) ==== |
- | Diese Datei hat die Angewohnheit, | + | This file has a habit that they can always continue to grow over time. Each transition from one version to another may require that the information about the addon must be adapted to new conditions. One of the most important rules for this file is: It must be possible to update from any version to the latest version. |
<code php upgrade.php> | <code php upgrade.php> | ||
Line 208: | Line 205: | ||
/* **** END UPGRADE ********************************************************* */ | /* **** END UPGRADE ********************************************************* */ | ||
- | </ | + | </ |
+ | |||
+ | ===== The files of addons of type ' | ||
+ | A so-called ' | ||
+ | For these files, the following rule applies: | ||
+ | :!: **// | ||
- | ===== Die Dateien eines Addons Type ' | + | Always assume that the files are called from inside a function/class method and of course, global variables are not available!//**\\ |
- | Ein sogenanntes ' | + | [[dev: |
- | Auch für diese Dateien gilt folgende Regel:\\ | + | A Page addon requires at least one base table in the database. The table must be according to the pattern: it must be named mod_AddonName |
- | :!: **// | + | |
- | Gehen Sie grundsätzlich immer von der Annahme aus, dass diese Dateien innerhalb einer Funktion/ | + | |
- | [[dev: | + | |
- | Ein Page-Addon benötigt wenigstens eine Basis-Tabelle | + | |
==== add.php (erforderlich) ==== | ==== add.php (erforderlich) ==== | ||
Line 248: | Line 246: | ||
</ | </ | ||
- | ==== delete.php (erforderlich) ==== | + | ==== delete.php (required) ==== |
<file php delete.php> | <file php delete.php> | ||
Line 289: | Line 287: | ||
- | FIXME ... und es geht noch weiter... | + | FIXME ... and many more things to be added... |