This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:dev:284:helloworld [15.08.2015 21:39] – [info.ini (erforderlich)] mrbaseman | en:dev:284:helloworld [17.08.2015 21:16] – [delete.php (erforderlich)] translated mrbaseman | ||
---|---|---|---|
Line 92: | Line 92: | ||
</ | </ | ||
==== 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 137: | ||
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
</ | </ | ||
- | ==== 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 158: | ||
/* **** 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 184: | ||
/* **** 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 207: | ||
/* **** 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 248: | ||
</ | </ | ||
- | ==== delete.php (erforderlich) ==== | + | ==== delete.php (required) ==== |
<file php delete.php> | <file php delete.php> | ||
Line 289: | Line 289: | ||
- | FIXME ... und es geht noch weiter... | + | FIXME ... and many more things to be added... |