User Tools

Site Tools


en:dev:all:wb-adaption

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
en:dev:all:wb-adaption [13.06.2015 16:24] – [Dateinamen] mrbasemanen: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 60: Line 58:
 Each file which contains executable PHP code should end with the extension **.php** and be carried out in UpperCamelCase. Each file which contains executable PHP code should end with the extension **.php** and be carried out in UpperCamelCase.
  
-==== Verzeichnise ==== +==== Directories ==== 
-Zur Benennung von Verzeichnissen gelten die selben Grundlagen wie für DateienEs sind nur alphanummerische Zeichen sowie nur wenige Sonderzeichen des Standard 7-Bit-ASCII Bereiches <128 (**[color=blue] ! # - . @ ~ [/color]**) zulässigWie bei Dateinamensind Leerzeichen und der Unterstrich grundsätzlich verboten.  +For naming directories the same basis as for files applyOnly alphanumeric characters and a few special characters of standard 7-bit ASCII range <128 (**[color=blue] ! # - . @ ~ [/color]**) are allowedAs with file namesspaces, and the underscore are prohibited. 
-==== Funktionen und Methoden ====+ 
 +==== Functions and Methods ====
  
-Funktions- und Methodennamen dürfen nur Alphanummerische Zeichen enthaltenUnterstriche sind nicht gestattetNummern sind in Funktionsnamen gestattet aber in den meisten Fällen nicht empfohlen. +Function and method names may only contain alphanumeric charactersUnderscores are not permittedNumbers are however permitted in function names in most cases however not recommendedVerbosity is generally encouragedFunction names should be as verbose as possible to describe their purpose and behavior as precisely as possible.
-Wortreichtum wird generell befürwortetFunktionsnamen 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 //**lowerCamelCase**// (oder einfach //**camelCase**//geschrieben werdenDas bedeutet, mit einem klein geschriebenen Verb wie //get//, //set//, //add//, //delete//, //load//, //save//, //execute// etc. beginnen, das dann von einem Substantiv in StudlyCaps gefolgt werden kann, welches das zu bearbeitende Objekt beschreibtBeispiel: <php> $oMyObject->saveItemList(); </php> oder <php> reloadAllModules(); </php>+Functions or methods have to be written whenever possible in //**lowerCamelCase**// (or simply //**camelCase**//). This means they should begin with a lowercase verb like //get//, //set//, //add//, //delete//, //load//, //save//, //execute// etc. followed by a noun in StudlyCaps that describes the object to be processedExample: <php> $oMyObject->saveItemList(); </php> or <php> reloadAllModules(); </php>
  
-:!: **Achtung:** Es dürfen niemals doppelte Unterstriche als Prefix für Methoden-Funktions- oder Variablennamen verwendet werden. Es besteht hier die Gefahrdass es zu Überschneidungen mit aktuellen oder zukünftigen, PHP-eigenen Magic-Functions etc. kommt.+:!: **Warning:** doulble underscores may never be used as a prefix for methodfunctionor variable names. There is the danger that it overlaps with current or future, PHP's intrinsic Magic Functions etc..
  
en/dev/all/wb-adaption.1434212682.txt.gz · Last modified: 13.06.2015 16:24 by mrbaseman