Using static method to create objects
View Single Post
06-03-2009, 02:25 AM
Join Date: Oct 2008
Location: Brazil, Balneário Camboriu
Review any typo!
Hi, dear Captain Merton!
I've run some tests on your script and have little to say!
Your code is okay, the SingleTon Pattern is correct,
but you typed the Constructor wrong:
private function _contruct($colid, $colname)
The correct is:
private function __construct($colid, $colname)
Just it! Congratulation on your way with Design Patterns!
...it's about producing and sharing!
View Public Profile
Send a private message to gilbertoalbino
Visit gilbertoalbino's homepage!
Find More Posts by gilbertoalbino