HTML_QuickForm2 calling protected methods in other objects?

From: Date: Tue, 05 Jul 2011 09:27:19 +0000
Subject: HTML_QuickForm2 calling protected methods in other objects?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-54363@lists.php.net to get a copy of this message
Hi, Please help me understand why QF2 containers may call protected methods of other objects! The problem: The QF2 container iterates over all children and calls their validate() method: http://svn.php.net/viewvc/pear/packages/HTML_QuickForm2/trunk/HTML/QuickForm2/Node.php?revision=311435&view=markup#l625 The childrens are all QF2 nodes at least: http://svn.php.net/viewvc/pear/packages/HTML_QuickForm2/trunk/HTML/QuickForm2/Container.php?revision=310418&view=markup#l414 the node::validate method is protected. How is it possible that the container may call it? It's outside the class scope! -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

« previous php.pear.dev (#54363) next »