Re: RE: RFC: PHP OO API naming convention

php.internals

Ján Šuňavec

23 years ago
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. Jan Sun
> > From: Lukas Smith [mailto:smith@backendmedia.com] > > Sent: Tuesday, May 20, 2003 1:04 PM > > > This is a follow up of a previous thread but this time I will
give it
> > the RFC label to make it more official: > > http://marc.theaimsgroup.com/?l=php-dev&m=105299997308470&w=2 > > > > I am proposing the use of studlyCaps as the CS standard for object > > oriented API's exposed by PHP extensions. > > I was just informed that I am making this more complex than they
need to
> be and that the first thread was enough. I will make the necessary > modifications to the CODING_STANDARDS and will get someone to commit > this. > > Regards, > Lukas > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >
====================== REKLAMA ================================= Získajte supervýhodné ADSL ešte výhodnejšie v cenovom odpočítavaní Slovanet ADSL Teraz! Čím skôr sa rozhodnete, tým viac ušetríte. http://www.slovanet.sk/menu/adsl.html

Derick Rethans

23 years ago
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/ -------------------------------------------------------------------------

Alan Knowles

23 years ago
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. >
Actually PHP funcitons are case INSENSITIVE, you will find many an interesting read about this subject on the mailing list. (eg. executequery and executeQuery are the same..) Regards Alan
> PHP use >another naming convencion as substitute. I think it's better for >users. I choose old standart. > > >
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com