summaryrefslogtreecommitdiffstats
path: root/user_guide/general/styleguide.html
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:41:28 +0100
committerPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:41:28 +0100
commit1f2b3f06d951d949f5b565f0955e3e68d32008e2 (patch)
treec7a543f5dc851b54b585e13100a1dde855c07885 /user_guide/general/styleguide.html
parent22f1a6380b292dbe9576b4015cbfbd09618ead5d (diff)
parente79d41a0de8a21db83fdb6b3e25ae65c9923c46d (diff)
Automated merge with http://hg.ellislab.com/CodeIgniterNoPhp4/
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()
{
}