Re: HTML_QuickForm::registerElementType() - why not static?

From: Date: Fri, 13 Feb 2004 09:19:55 +0000
Subject: Re: HTML_QuickForm::registerElementType() - why not static?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10674@lists.php.net to get a copy of this message
Hi! Jeff Schmidt wrote:
~ 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?
Ugh. This is a documentation problem, the method definitely *can* be called statically. Thanks for noticing! Please submit a bug report for this, so that I'll not forget to fix the docs.

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