Functions internal to a class implementation

From: Date: Sat, 08 Mar 2003 15:18:03 +0000
Subject: Functions internal to a class implementation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138756@lists.php.net to get a copy of this message
I have a class for elements of an HTML form and a bunch of subclasses for text box, radio, etc. I need some utility functions which will be called by some of the subclass implementations. These are utilities used within the class only, they are not methods. Is there a "best" way to implement this given that there are no private functions in PHP? The options seem to be to define the utilities globally, or define them as methods in the superclass and call them with superclass::func(); in either case I would never call them externally. Thanks for any tips, ---------- Tom Rawson

« previous php.general (#138756) next »