Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7400383
ValidVariableNameStandard.xml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1001 B
Referenced Files
None
Subscribers
None
ValidVariableNameStandard.xml
View Options
<documentation
title=
"Variable Names"
>
<standard>
<![CDATA[
Variable names should be camelCased with the first letter lowercase. Private and protected member variables should begin with an underscore
]]>
</standard>
<code_comparison>
<code
title=
"Valid: A multi-word variable uses camel casing."
>
<![CDATA[
<em>
$
testNumber</em> = 1;
]]>
</code>
<code
title=
"Invalid: A multi-word variable uses underscores and initial capitalization."
>
<![CDATA[
<em>
$
Test_Number</em> = 1;
]]>
</code>
</code_comparison>
<code_comparison>
<code
title=
"Valid: A private member variable begins with an underscore."
>
<![CDATA[
class Foo
{
private
$
<em>_</em>bar;
}
]]>
</code>
<code
title=
"Invalid: A private member variable does not begin with an underscore."
>
<![CDATA[
class Foo
{
private
$
bar;
}
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 16:40 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/14/fce1151f7be2e30ed4f2ccbc5b8f
Default Alt Text
ValidVariableNameStandard.xml (1001 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment