Differences
This shows you the differences between the selected revision and the current version of the page.
punbb13:coding_standards 2010/04/09 08:48 | punbb13:coding_standards 2020/02/06 11:04 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Coding standards ====== | + | ====== PunBB 1.3 Coding standards ====== |
Recommendations below describes the appearance of PHP, JavaScript, SQL or any other code used in PunBB and extensions. | Recommendations below describes the appearance of PHP, JavaScript, SQL or any other code used in PunBB and extensions. | ||
Line 65: | Line 65: | ||
* Prefix tables names and table indexes with <code php>$forum_db->prefix</code> | * Prefix tables names and table indexes with <code php>$forum_db->prefix</code> | ||
* Use the SQL2003 style [[http://en.wikipedia.org/wiki/Join_(SQL)#Inner_join|explicit join notation]]. | * Use the SQL2003 style [[http://en.wikipedia.org/wiki/Join_(SQL)#Inner_join|explicit join notation]]. | ||
- | * Whenever possible, write cross-database compatible queries. Developers should take advantage of [[punbb13:database helpers]] like | + | * Whenever possible, write cross-database compatible queries. Developers should take advantage of [[punbb13:database helpers]]. They allows to easily create/extend cross-database compatible queries. In rare cases where database specific queries are needed, every effort should be made to provide alternative queries for other supported databases. |
- | + | ||
- | <code php>$forum_db->query_build()</code> | + | |
- | + | ||
- | They allows to easily create/extend cross-database compatible queries. In rare cases where database specific queries are needed, every effort should be made to provide alternative queries for other supported databases. | + | |
===== CSS ===== | ===== CSS ===== |