note 50269 added to function.aggregate-properties

From: Date: Wed, 23 Feb 2005 12:59:02 +0000
Subject: note 50269 added to function.aggregate-properties
Groups: php.notes 
Request: Send a blank email to php-notes+get-85425@lists.php.net to get a copy of this message
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(); ---- Manual Page -- http://www.php.net/manual/en/function.aggregate-properties.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50269 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50269&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50269&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50269&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50269&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50269&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50269&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85425) next »