Re: CS Clarifications
| From: | Richard York | Date: | Sat, 25 Sep 2004 09:23:23 +0000 |
| Subject: | Re: CS Clarifications | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-1879@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Fri, 24 Sep 2004 05:44:21 -0500, Richard York <richy@smilingsouls.net> wrote:I just don't see why anyone would /want/ to override a method in Mail_IMAP. Regardless of that, I'm all for flexibliity anyway. So I've decided to just go ahead and update to "$this->". -- Richard York ------------------------------------------------------------------------ [richy[<@>]smilingsouls[<@>]net] :: [http://www.smilingsouls.net] [http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmailI have an open bug complaining about my use of static notation internally in Mail_IMAP, that is Mail_IMAP::connect(...) /within/ the object. It has been my philosophy to use static notation rather than "$this->" in the object to make it more obvious which class a method resides in.If you use a "static" call, extending and overriding are impossible. It's much better to use $this. If it happens not to call Mail_IMAP's connect, then that's what's supposed to happen. I say don't use namespaced calls unless you're calling the function statically.