Name of methods of work with MySql PDO
-
I'm writing my class to work with MySql through PDO. I'd like to simplify the pysanine, the only question is how to name a method that would not be a problem in the next PHP versions. Suddenly, they'll figure out a similar with the name of my methods.
I just want to ask for data in bud. I'm writing a method that will be in
(ключ массива, ключ массива) VALUES (значение массива, значение массива)
♪If I call method
select
It's gonna be understandable, but it's stupid, and if it's calledDB_select
orPDO_select
?
-
Why stupid?
There's nothing to do with Nemespeis. They belong to names. Class♪ There's no need for any nemspeis inside the class. The R.R. won't come up with new functions for your class.
What's the point of repeating and writing?
$pdo->pdo_select()
orDB::db_select()
? That's what's gonna be stupid.And it's stupider to call the word select the method that meets the INSERT request.