extending a class?

From: Date: Tue, 26 Feb 2002 11:16:06 +0000
Subject: extending a class?
Groups: php.general 
Request: Send a blank email to php-general+get-86221@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all Is it possible to extend a class based on a value passed to the constructor? Here's the scenario: I'm going to build a class to help me knock out contanct forms for clients and I want to be able to run certain routines with either Danish or English msg's. So I was thinking: $form=new form('dk') Would extend the class to include all the dk language routines and $form=new form('en') Would do likewise for english. Do you see what I mean? Many thanks..... - -- - ----------------------------------------------------------- www.explodingnet.com | Projects, Forums and + Articles for website owners - -- Nick Wilson -- | and designers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8e252HpvrrTa6L5oRAnKFAJ9+bWkCFst5Y1YB/y0E8bbgqMnUUgCfVwQN +IB7iaz5lgzE7EkE/OfqmqE= =kfok -----END PGP SIGNATURE-----

« previous php.general (#86221) next »