note 50269 deleted from function.aggregate-properties by tularis
| From: | tularis@php.net | Date: | Wed, 23 Feb 2005 13:59:42 +0000 |
| Subject: | note 50269 deleted from function.aggregate-properties by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85434@lists.php.net to get a copy of this message | ||
Note Submitter: php at tribun dot de
Reason: useless
----
class a
{
function a()
{
echo "will not be added";
}
function x()
{
echo "will not be added";
}
function y()
{
echo " y ";
}
}
class b
{
function _x()
{
echo "will not be added";
}
function x()
{
echo "will not be added";
}
function y()
{
echo "will not be added";
}
function z()
{
echo " z ";
}
}
class test
{
function test()
{
// dynamically extend the methods of the following classes (except for: constructor, methodnames
beginning with "_", allready existing methods)
aggregate_methods( $this, 'a' );
aggregate_methods( $this, 'b' );
}
function x()
{
echo " x ";
}
}
$test = new test();
//$test -> a(); //doesn't exist!
//$test -> _x(); //doesn't exist!
$test -> x();
$test -> y();
$test -> z();