HTML_QuickForm::registerElementType() - why not static?

From: Date: Thu, 12 Feb 2004 21:05:05 +0000
Subject: HTML_QuickForm::registerElementType() - why not static?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10668@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, ~ I was looking at the manual page for HTML_QuickForm::registerElementType(), and at the bottom of the page, it says that this cannot be called statically. Why not? It seems logical to me that if I am registering a new element type, I want it available to ALL HTML_QuickForms that I might instantiate, not just one. Is it because the data that you register has to be stored *somewhere*, and PHP doesn't support static class member variables? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAK+p9/djDnfAeGysRAjVHAKDLwYIzI6FuknRlf6rHAAvrmKZWTgCg9NfY wg3WD0F7XliElMyp57RhJ9o= =OIvG -----END PGP SIGNATURE-----

« previous php.pear.general (#10668) next »