summaryrefslogtreecommitdiffstats
path: root/user_guide/general/styleguide.html
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:41:23 +0100
committerPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:41:23 +0100
commite79d41a0de8a21db83fdb6b3e25ae65c9923c46d (patch)
tree6eddba47a27b9ee5d7a53315aaaaa7bf86df856c /user_guide/general/styleguide.html
parent00921a54feb7fde4444401ab93d77780c6c3bb96 (diff)
Userguide tweaks to show proper PHP 5 examples and removing the compat helper from the menu.
Diffstat (limited to 'user_guide/general/styleguide.html')
-rw-r--r--user_guide/general/styleguide.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/user_guide/general/styleguide.html b/user_guide/general/styleguide.html
index 7b7d837d9..f30f45529 100644
--- a/user_guide/general/styleguide.html
+++ b/user_guide/general/styleguide.html
@@ -161,7 +161,7 @@ echo "Here's my code!";
<h2><a name="class_and_method_naming"></a>Class and Method Naming</h2>
<div class="guidelineDetails">
- <p>Class names should always have their first letter uppercase, and the constructor method should match identically. Multiple words should be separated with an underscore, and not CamelCased. All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb. Try to avoid overly long and verbose names.</p>
+ <p>Class names should always start with an uppercase letter. Multiple words should be separated with an underscore, and not CamelCased. All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb. Try to avoid overly long and verbose names.</p>
<code><strong>INCORRECT</strong>:
class superclass
@@ -170,11 +170,10 @@ class SuperClass
<strong>CORRECT</strong>:
class Super_class</code>
- <p>Notice that the Class and constructor methods are identically named and cased:</p>
<code>class Super_class {
- function Super_class()
+ function __construct()
{
}