[PHP] Re: configuration class - skeleton code for first OOP adventure
Hello, [EMAIL PROTECTED] (Anders Thoresson) wrote Is this a good start, or should I change anything? I'm not a OO expert but I think you could include the SetConfigurationFile () function in your contructor. And if it fails inside the constructor exit to your other class controlling errors. Polleke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: configuration class - skeleton code for first OOP adventure
I'm not a OO expert but I think you could include the SetConfigurationFile () function in your contructor. And if it fails inside the constructor exit to your other class controlling errors. You mean that I don't need a separate function for setConfigurationFile, but could rather include the controlling code in my constructor? -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: configuration class - skeleton code for first OOP adventure
[EMAIL PROTECTED] (Anders Thoresson) wrote You mean that I don't need a separate function for setConfigurationFile, but could rather include the controlling code in my constructor? Yup. Polleke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php