# RFC: PHP OO API naming convention

- Thread: https://externals.io/message/1781
- Original archive: https://news-web.php.net/php.internals/1781
- Started by jansun@pobox.sk on 2003-05-20T12:44:09+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1781 — jansun@pobox.sk — 2003-05-20T12:44:09+00:00

URL: https://externals.io/message/1781#1781

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



> > […]
>  
> > […]
give it
> > […]
> 
> 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
> 
> 
> -- 
> 
> 
> 

====================== 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

---

## #1782 — Derick Rethans — 2003-05-20T12:52:31+00:00

URL: https://externals.io/message/1781#1782 · In reply to: #1781

> 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/
