This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dev:all:wb-adaption [13.06.2015 16:19] – [Emulated namespaces] translated second paragraph mrbaseman | en:dev:all:wb-adaption [13.06.2015 16:39] (current) – finished translation and removed the fixme-paragraph 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)// | ||
- | |||
====== General adjustment for Website Baker ====== | ====== General adjustment for Website Baker ====== | ||
Since WebsiteBaker existed before the appearance of the PHP FIG standards a few adjustments to the standards are required, which are described below. Further adjustments to adhere are included in the chapters on the individual WB versions / WB version groups! | Since WebsiteBaker existed before the appearance of the PHP FIG standards a few adjustments to the standards are required, which are described below. Further adjustments to adhere are included in the chapters on the individual WB versions / WB version groups! | ||
Line 55: | Line 53: | ||
**Classes of ACP**: (AdminControlPanel => Former backend) are located in the directory **'' | **Classes of ACP**: (AdminControlPanel => Former backend) are located in the directory **'' | ||
**Classes of third-party libraries**: | **Classes of third-party libraries**: | ||
- | ==== Dateinamen | + | ==== Filenames |
- | Soweit die vorgenannten Regeln für Klassennamen eingehalten wurden, ergeben sich die Dateinamen eindeutig aus den Klassennamen. Die Klasse | + | As far as the above-mentioned rules for class names have been complied with, the filename would clearly result from the class name. The class **m_MyModul_PluginAbstract** |
- | Für alle anderen Dateien sind nur alphanummerische Zeichen und der Bindestrich | + | For all other files, only alphanumeric characters and the dash (**-**) |
- | Jede Datei, die ausführbaren | + | Each file which contains executable |
- | ==== Verzeichnise | + | |
- | Zur Benennung von Verzeichnissen gelten die selben Grundlagen wie für Dateien. Es sind nur alphanummerische Zeichen sowie nur wenige Sonderzeichen des Standard | + | ==== Directories |
- | ==== Funktionen und Methoden | + | For naming directories the same basis as for files apply. Only alphanumeric characters and a few special characters of standard |
+ | |||
+ | ==== Functions and Methods | ||
- | Funktions- und Methodennamen dürfen nur Alphanummerische Zeichen enthalten. Unterstriche sind nicht gestattet. Nummern sind in Funktionsnamen gestattet aber in den meisten Fällen nicht empfohlen. | + | Function and method names may only contain alphanumeric characters. Underscores are not permitted. Numbers are however permitted |
- | Wortreichtum wird generell befürwortet. Funktionsnamen sollten so wortreich wie möglich sein um deren Zweck und Verhalten möglichst genau zu erklären. | + | |
- | Funktionen oder Methoden sollen möglichst immer in // | + | Functions or methods have to be written whenever possible |
- | :!: **Achtung:** Es dürfen niemals doppelte Unterstriche als Prefix für Methoden-, Funktions- oder Variablennamen verwendet werden. Es besteht hier die Gefahr, dass es zu Überschneidungen mit aktuellen oder zukünftigen, PHP-eigenen | + | :!: **Warning:** doulble underscores may never be used as a prefix for method, function, or variable names. There is the danger that it overlaps with current or future, PHP's intrinsic |