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:47] – [install.php (erforderlich)] translated 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 158: | 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 184: | 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 207: | 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 247: | Line 246: | ||
</ | </ | ||
- | ==== delete.php (erforderlich) ==== | + | ==== delete.php (required) ==== |
<file php delete.php> | <file php delete.php> | ||
Line 288: | Line 287: | ||
- | FIXME ... und es geht noch weiter... | + | FIXME ... and many more things to be added... |