Semantic MediaWiki and related extensions
coding

Semantic MediaWiki and many of its extensions stick to a strict naming conventions and code styles based on the MediaWiki coding conventions. The guidelines can often be adopted to other extensions by just changing the prefix SMW.

Files and folders

Encoding

PHP

Class annotations

The `` annotation for a class indicates a solely restricted use within the SMW-core code base and even though a class might provide public access methods, it SHOULD NOT be expected that the class itself or its methods will be available during or after a specific release cycle.

Naming conventions

In general, all names are written using the CamelCase style, although methodNames and variableNames typically start with lower case letters. Private methods are not required to follow the convention.

Code layout and indenting

In general, code layout is guided by the MediaWiki coding conventions. Please be sure to read this document.

JavaScript

Naming conventions

In general, all names are written CamelCase, although methodNames and variableNames typically start with lower case letters.

Code layout and indenting

Source documentation


About | General disclaimer | Privacy policy