![]() |
The Config Class
UPDATE
Heres what I have so far in this config class: LATEST PHP Code:
|
Outside of our PM convo (this will go for every coder).
Please code with allman style indents to conform with project standards. Please do not use sprintf to secure queries, it is an unnecessary layer of processing that takes longer to do than just compiling the query. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
No, I have no bench marks. But calling a function will always take longer than using a standard operator. I'm sick of arguing with you about this, I could have almost written the class in the time I spend typing these messages. Do you want me to?
|
Quote:
Not really, I'm taking the opportunity to do it, and you seem so strict at things.. You sound a bit arrogant. *!* |
Quote:
Quote:
As for being strict, I am only strict on general things like indentation and general structure. Once we get to smaller things, I wont care. I won't even look at the source most of the time when we move forward. However, when starting a project, what kind of project leader am I if I make no decisions? We saw where not being decisive got us for a month or so. I am sorry if I come across as arrogant, but I don't want to be asked for proof when I give a reason as simple as it takes longer (I'm always more compelled to answer "I'll do it, any particular reason you feel that way?" replies). |
Quote:
lol read pm |
Already replied to it.
I have decided to let the coders compile queries however they want, I will later review the code and see if they should be standardized. Now I have to finish packing for my trip, I may not be on till tomorrow morning where I will finalize my replacement. |
PHP Code:
Also, I think(since you're assigning the fetched results to a variable) you need to use the getFetch(). You could do like this: PHP Code:
PHP Code:
PHP Code:
|
Quote:
I rewrote a lot of the code of my config class now so no need, plus you told me in a pm how to do it correctly. :P oh and you still haven't told me how to actually call the array elements. ;P |
How do you mean? What array elements? How to use the array you've fetched?
Should be something like this: PHP Code:
|
Quote:
|
One more thing though!
On your createConfig function, you set the SQL, but you don't execute it with the DB, is it supposed to be like that? |
Quote:
|
Ah, I see. Great! ^^
|
Updated (chars)
|
| All times are GMT. The time now is 05:36 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0