PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/CodeIgniter/Docs/NamingConventions/ConstructorNameStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/CodeIgniter/Docs/NamingConventions/ConstructorNameStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/CodeIgniter/Docs/NamingConventions/ConstructorNameStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 1 year ago
Size: 847 bytes
 

Contents

Class file image Download
<documentation title="Constructor Names"> <standard> <![CDATA[ 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. ]]> </standard> <code_comparison> <code title="Examples of valid constructor name"> <![CDATA[ class Super_class { function Super_class() { echo 'Some code here !'; } } ]]> </code> <code title="Examples of invalid constructor name"> <![CDATA[ class Super_class { function __constructor() { echo 'Some code here !'; } } ]]> </code> </code_comparison> </documentation>