[TYPO3-50-general] Common namings for variables with path-content

Malte Jansen mail at maltejansen.de
Thu Jan 15 01:14:36 CET 2009


Robert Lemke schrieb:
> Hi Karsten,
> 
> Am 14.01.2009 um 17:35 schrieb Karsten Dambekalns:
> 
>> A classname can be
>> * unqualified (Person)
>> * qualified (Staff\Person)
>> * fully qualified (\Management\Staff\Person)
>>
>> Since PHP handles class names contained in strings *always* as fully
>> qualified, $className is fine. Since a qualified classname is of rare
>> use and an unqualified name doesn't help at all in 99% of the cases we
>> can stick to that, IMHO.
> 
> +1
> 
> So we end up with
> 
>  - $className (always full qualified)
>  - $qualifiedClassName
>  - $unqualifiedClassName

sounds good
+1


More information about the TYPO3-project-5_0-general mailing list