[Phpmyadmin-devel] PAM_List_Databases commited and replaced $dblist
Sebastian Mendel
lists at sebastianmendel.de
Fri Sep 22 12:30:00 CEST 2006
Jürgen Wind schrieb:
>
>
> Sebastian Mendel wrote:
>> Sebastian Mendel schrieb:
>>
>> variablename:
>>
>> $PMA_List_Database vs. PMA_Databases
>>
>> ???
>>
>> what do you prefer?
>>
>>
>> at first i thought i use $PMA_List_Database to make it visible that this
>> is an object from the class PMA_List_Database
>>
>> but this is somehow long, and IF we later introduce some derived classes
>> like PMA_List_Database_Mysql_5 or something similar the variablename
>> will not change, it will stay $PMA_List_Database - so there is no hint
>> on the used class behind this object
>>
>> whats best?
>>
>> $pma_databases
>> $PMA_Databases
>> $PMA->databases
>> $databases
>
> inofficial vote:
>
> $pmaDatabases
this is against ALL rules ... ;-)
neither is there a hint to the class/type used nor does this conform to
PEAR coding standard.
variable names should be written complete in lowercase, separated by
underscore, studlyCaps or used with functions or methods
--
Sebastian Mendel
www.sebastianmendel.de
More information about the Developers
mailing list