[PHP] Re: configuration class - skeleton code for first OOP adventure

2003-10-08 Thread Paul van Schayck
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

2003-10-08 Thread anders thoresson
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

2003-10-08 Thread Paul van Schayck
[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