Subversion Repositories Applications.framework

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<documentation title="Constant Names">
2
	<standard>
3
    <![CDATA[
4
     Constants should always be all-uppercase, with underscores to separate words.
5
    ]]>
6
	</standard>
7
	<code_comparison>
8
		<code title="Valid: all uppercase">
9
        <![CDATA[
10
define('<em>FOO_CONSTANT</em>', 'foo');
11
 
12
class FooClass
13
{
14
    const <em>FOO_CONSTANT</em> = 'foo';
15
}
16
        ]]>
17
		</code>
18
		<code title="Invalid: mixed case">
19
        <![CDATA[
20
define('<em>Foo_Constant</em>', 'foo');
21
 
22
class FooClass
23
{
24
    const <em>foo_constant</em> = 'foo';
25
}
26
        ]]>
27
		</code>
28
	</code_comparison>
29
</documentation>