aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/docs/coding-guidelines.html
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-28 19:15:24 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-28 19:15:24 +0000
commit19a36ed364ffdc4da784a253baa8aa2a8ac6845a (patch)
treea355181dc26b47abb2c34228fe32a92fd40df28d /phpBB/docs/coding-guidelines.html
parentebf4f4ec8e787153e16cc6cec6fc5fefadc97107 (diff)
downloadforums-19a36ed364ffdc4da784a253baa8aa2a8ac6845a.tar
forums-19a36ed364ffdc4da784a253baa8aa2a8ac6845a.tar.gz
forums-19a36ed364ffdc4da784a253baa8aa2a8ac6845a.tar.bz2
forums-19a36ed364ffdc4da784a253baa8aa2a8ac6845a.tar.xz
forums-19a36ed364ffdc4da784a253baa8aa2a8ac6845a.zip
- adjusted coding guidelines
- fixed custom bbcode {TEXT} token - added unapproved item/info for unapproved posts in a topic git-svn-id: file:///svn/phpbb/trunk@5982 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/docs/coding-guidelines.html')
-rw-r--r--phpBB/docs/coding-guidelines.html43
1 files changed, 17 insertions, 26 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index 803d88ebc2..3f15f22a55 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -348,7 +348,7 @@ class ...
<a name="code"></a><h1>2. Code Layout/Guidelines</h1>
- <p>Please note that these Guidelines also applies to js code.</p>
+ <p>Please note that these Guidelines also applies to javascript code.</p>
<a name="namingvars"></a><b>2.i. Variable/Function Naming</b>
<br /><br />
@@ -691,6 +691,7 @@ switch ($mode)
}
</pre></blockquote>
+
</div>
<a href="#top">Top</a>
<br /><br />
@@ -892,10 +893,21 @@ trigger_error('NO_FORUM');
<p>All urls pointing to internal files need to be prepended by the <code>$phpbb_root_path</code> variable. Within the administration control panel all urls pointing to internal files need to be prepended by the <code>$phpbb_admin_path</code> variable. This makes sure the path is always correct and users being able to just rename the admin folder and the acp still working as intended.</p>
- <h3>General Functions: </h3>
- <p>Use <code>sizeof</code> instead of <code>count</code>, this is just a general preference and guideline and has no other benefit than to be consistent.</p>
+ <h3>General function usage: </h3>
- <p>Use <code>strpos</code> instead of <code>strstr</code>.</p>
+ <p>Some of these functions are only chosen over others because of a personal preference and are having no other benefit than to be consistant over the code.</p>
+
+ <ul>
+ <li>
+ <p>Use <code>sizeof</code> instead of <code>count</code></p>
+ </li>
+ <li>
+ <p>Use <code>strpos</code> instead of <code>strstr</code></p>
+ </li>
+ <li>
+ <p>Use <code>else if</code> instead of <code>elseif</code></p>
+ </li>
+ </ul>
</div>
<a href="#top">Top</a>
@@ -1158,33 +1170,12 @@ markup
<a name="changes"></a><h1>5. Guidelines Changelog</h1>
<div class="paragraph">
-<h2>Revision 1.7</h2>
-
-<ul class="menu">
- <li>Updated <a href="#locations">1.iii. File Locations</a> to reflect recent updates</li>
- <li>Added paragraph about switch statements to <a href="#codelayout">2.ii. Code Layout</a></li>
- <li>Updated <a href="#sql">2.iii. SQL/SQL Layout</a></li>
- <li>Added paragraph about url formatting to <a href="#general">2.v. General Guidelines</a></li>
-</ul>
-
-<h2>Revision 1.6</h2>
-
-<ul class="menu">
- <li>Added more information to Tabs vs. Spaces paragraph</li>
-</ul>
-
<h2>Revision 1.5</h2>
<ul class="menu">
- <li>$user->start now $user->session_begin</li>
+ <li>Changed General function usage paragraph in <a href="#general">2.v. General Guidelines</a></li>
</ul>
-<h2>Revision 1.3</h2>
-
-<ul class="menu">
- <li>Updated Section 1.iii. - dbal layout</li>
- <li>Extended Section 2.v. - usage of request_var()</li>
-</ul>
</div>
<a href="#top">Top</a>