Re: RE: [PHP-DEV] RFC: PHP OO API naming convention
| From: | Derick Rethans | Date: | Tue, 20 May 2003 12:52:31 +0000 |
| Subject: | Re: RE: [PHP-DEV] RFC: PHP OO API naming convention | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1782@lists.php.net to get a copy of this message | ||
On Tue, 20 May 2003, [iso-8859-2] Ján Śu?avec wrote:
> Current: $foo->execute_query($query, $param);
> I think, current standart is "PHP" standart.
>
>
> New: $foo->executeQuery($query, $param);
> New standart is somethink like DELPHI or C++. Big problem is PHP is
> case sensitive. executeQuery and executequery is NOT same. PHP use
> another naming convencion as substitute. I think it's better for
> users. I choose old standart.
Currently the onyl class that is affected is the internal class
"Exception", and that already uses the PEAR standard. (which is the only
OO standard right now). Functional interfaces won't change, nothing else
will changes, we just decide that the way to go for classes in extension
is to use the PEAR OO standard, there is really little to chose for you.
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------