User Tools

Site Tools


en:dev:284:helloworld

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:dev:284:helloworld [17.08.2015 20:46] – [uninstall.php (erforderlich)] translated mrbasemanen:dev:284:helloworld [17.08.2015 21:16] – [delete.php (erforderlich)] translated mrbaseman
Line 185: Line 185:
  
 </code> FIXME accomplish by the return of error messages!! </code> FIXME accomplish by the return of error messages!!
-==== upgrade.php (erforderlich) ==== +==== upgrade.php (required) ==== 
-Diese Datei hat die Angewohnheit, dass sie im Laufe der Zeit immer weiter anwachsen kannJeder Übergang von einer Version zur nächsten kann erfordern, dass Daten des Addon an neue Bedingungen angepasst werden müssenEine der wichtigsten Regeln für diese Datei istEs muss möglich sein, von jeder beliebigen Version auf die neueste Version upzudaten.+This file has a habit that they can always continue to grow over timeEach transition from one version to another may require that the information about the addon must be adapted to new conditionsOne of the most important rules for this file isIt must be possible to update from any version to the latest version.
  
 <code php upgrade.php> <code php upgrade.php>
Line 207: Line 207:
 /* **** END UPGRADE ********************************************************* */ /* **** END UPGRADE ********************************************************* */
  
-</code> FIXME ergänzen um Rückgabe von Fehlermeldungen!!+</code> FIXME complement by return error messages !!
  
-===== Die Dateien eines Addons Type 'page' ===== +===== The files of addons of type 'page' ===== 
-Ein sogenanntes 'page'-Addon benötigt derzeit noch eine Reihe von Dateienüber die der Core das Anlegen, Löschen und Verwalten von Addon-Instanzen steuern kannDiese '//erforderlich//'en Dateien sind nicht selbstständig lauffähig und werden ausschließlich vom Core aufgerufen.\\ +A so-called 'Page'-Addon currently needs a set of files so that the core can control the creatingdeleting and managing of addon instancesThese '//required//' files can not be run stand alone, but the can only be called from the core.\\ 
-Auch für diese Dateien gilt folgende Regel:\\ +For these files, the following rule applies
-:!: **//AchtungVerlassen Sie sich niemals darauf, dass die Basis-Dateien eines Addons im 'Global Scope' ((mit 'Scope' wird der Sichtbarkeits- und Gültigkeitsbereich einer Variablen bezeichnet. 'Global Scope ist der Bereich, der auch durch die Superglobale $_GLOBALS[] angesprochen wird.)) geladen und ausgeführt werden!! +:!: **//WarningNever assume that the base files of addons are loaded and run in the 'Global Scope' (( 'Scope' denotes the visibility and scope of a variable 'Global Scope' is the area which is also addressed by the superglobal $_GLOBALS [].)) 
-Gehen Sie grundsätzlich immer von der Annahme ausdass diese Dateien innerhalb einer Funktion/Klassenmethode aufgerufen werden und dadurch selbstverständlich globale Variablen nicht direkt zur Verfügung stehen!//**\\ + 
-[[dev:284:q_a-helloworld?&#weshalb_keine_page_id_mehr_in_addons|{{:quest.png?32|}}]]  [[dev:284:q_a-helloworld?&#weshalb_keine_page_id_mehr_in_addons|Weshalb wird die page_id in Addons nicht mehr benötigt?]]\\ +Always assume that the files are called from inside a function/class method and of courseglobal variables are not available!//**\\ 
-Ein Page-Addon benötigt wenigstens eine Basis-Tabelle in der DatenbankDie Tabelle muss nach dem Muster: mod_AddonName benannt werden und muss zumindest ein Integer Datenfeld für die SectionId enthalten Jeder Datensatz in dieser Tabelle verknüpft eine Instanz des Addons mit einer Section. Weitere Datenfelder können z.B. die Grundeinstellungen der jeweiligen Addon-Instanz aufnehmen.+[[dev:284:q_a-helloworld?&#weshalb_keine_page_id_mehr_in_addons|{{:quest.png?32|}}]]  [[dev:284:q_a-helloworld?&#weshalb_keine_page_id_mehr_in_addons|Why is page_id no longer needed in addons?]]\\ 
 +Page addon requires at least one base table in the databaseThe table must be according to the patternit must be named mod_AddonName and have at least an integer data field included for SectionId. Each record in this table associates an instance of the addon with a Section. More fields can contain standard settings of the addon instance, for example.
 ==== add.php (erforderlich) ==== ==== add.php (erforderlich) ====
  
Line 247: Line 248:
 </file> </file>
  
-==== delete.php (erforderlich) ====+==== delete.php (required) ====
  
 <file php delete.php> <file php delete.php>
Line 288: Line 289:
  
  
-FIXME ... und es geht noch weiter...+FIXME ... and many more things to be added...
en/dev/284/helloworld.txt · Last modified: 17.08.2015 21:17 by mrbaseman