Re: PEAR_DelegateOwner

From: Date: Tue, 04 Nov 2003 21:44:10 +0000
Subject: Re: PEAR_DelegateOwner
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23238@lists.php.net to get a copy of this message
Erg! I apologize, there seems to be a problem. I will just write it: interface PEAR_DelegateInterface {
    public function setOwner($owner);
    public function getOwner();
} On 4 Nov 2003, at 4:41 PM, LingWitt@insightbb.com wrote:
Apparently, only one files was sent. I have included the other. On 4 Nov 2003, at 4:35 PM, LingWitt@insightbb.com wrote:
I have sent my work on the delegation classes. There are two files. One contains the PEAR_DelegateInterface adopted by all objects that intend to offer themselves for delegation. The other contains the PEAR_DelegateOwner class from which all classes that intend to have this capability inherit (though I think these methods would be better off in the PEAR class). The scheme is as follows: You add either a delegate object or a delegate class (string or class name from which the object is created) to a delegate owner, which records the delegate along with its class. When a non-native method is called on a delegate owner, the owner checks to see whether or not one of its delegates can handle it. If none can, then it dies with an error (the format of which probably needs to be modified). If one can, the method-delegate relationship is cached for future reference, thereby making the process as efficient as possible. I would like to have some feedback, so please take a look at it and tell me what you think. Thanks. NOTE: I have not yet included any documentation. <DelegateOwner.php>-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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