|
Administrator
|
ZF Coding Standards are based on PEAR's CS. That standard was developed
first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 had no concept of visibility in its object model; to provide some pseudo-visibility, PEAR CS mandated that members considered non-public should be prefixed with an underscore. With the advent of PHP 5, PHP's object model received visibility operators in the form of private, protected, and public. Applying PEAR CS to PHP 5 code meant that if you marked a member as private or protected, you would also prefix with the underscore. Many have felt this is redundant, and also that it makes refactoring more difficult (changes in visibility often mean renaming the members). Proponents of the standard, however, argue that the leading underscore leads to easier maintenance of the code -- you know immediately what the visibility of the member you're dealing with is just by looking at it. PEAR2 has decided to eschew the underscore prefix: http://wiki.pear.php.net/index.php/MeetingMinutes20080824#Underscore_prefix_on_private_.28protected.3F.29 Basically, this rule is no longer required (as it was in PEAR1), though developers may choose to use them. What is YOUR opinion? Should the underscore be dropped in ZF2? Please vote! http://is.gd/eeA6f Please do _not_ reply to this thread -- the arguments for and against are well known at this time -- we're simply trying to decide on whether or not to amend the coding standards for ZF2. Thanks! -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc |
|
Can you tell us current score? :)
Regards, Saša Stamenković On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> wrote: ZF Coding Standards are based on PEAR's CS. That standard was developed |
|
Administrator
|
-- Саша Стаменковић <[hidden email]> wrote
(on Friday, 13 August 2010, 10:14 AM +0200): > Can you tell us current score? :) There are currently 381 responses: * 57% vote "Yes" (to remove the underscores) * 38% vote "No" (to retain underscores) * 4% vote "No opinion" What has been interesting is that the percentages have remained consistent from the outset -- I expected more deviation. What is also interesting is that there is no real clear majority. Typically, I like to see a 2/3 vote to feel comfortable that the change is widely accepted, but that is not the case at this time. > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> > wrote: > > ZF Coding Standards are based on PEAR's CS. That standard was developed > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 > had no concept of visibility in its object model; to provide some > pseudo-visibility, PEAR CS mandated that members considered non-public > should be prefixed with an underscore. > > With the advent of PHP 5, PHP's object model received visibility > operators in the form of private, protected, and public. Applying PEAR > CS to PHP 5 code meant that if you marked a member as private or > protected, you would also prefix with the underscore. Many have felt > this is redundant, and also that it makes refactoring more difficult > (changes in visibility often mean renaming the members). Proponents of > the standard, however, argue that the leading underscore leads to easier > maintenance of the code -- you know immediately what the visibility of > the member you're dealing with is just by looking at it. > > PEAR2 has decided to eschew the underscore prefix: > > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# > Underscore_prefix_on_private_.28protected.3F.29 > > Basically, this rule is no longer required (as it was in PEAR1), though > developers may choose to use them. > > What is YOUR opinion? Should the underscore be dropped in ZF2? > Please vote! > > http://is.gd/eeA6f > > Please do _not_ reply to this thread -- the arguments for and against > are well known at this time -- we're simply trying to decide on whether > or not to amend the coding standards for ZF2. > > Thanks! > > -- > Matthew Weier O'Phinney > Project Lead | [hidden email] > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc |
|
Wow, I expected better score for "Yes"! Thanks, Saša Stamenković On Fri, Aug 13, 2010 at 2:45 PM, Matthew Weier O'Phinney <[hidden email]> wrote: -- Саша Стаменковић <[hidden email]> wrote |
|
In reply to this post by weierophinney
I only for myself:
I was the first one replying your email of "General inclinations regarding prefixing non-public members?" with "No underscore". But I did not participate your poll for I really don't understand your intention of creating a poll after you had that email and so many people already responded. On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney <[hidden email]> wrote: > > -- Саша Стаменковић <[hidden email]> wrote > (on Friday, 13 August 2010, 10:14 AM +0200): > > Can you tell us current score? :) > > There are currently 381 responses: > > * 57% vote "Yes" (to remove the underscores) > * 38% vote "No" (to retain underscores) > * 4% vote "No opinion" > > What has been interesting is that the percentages have remained > consistent from the outset -- I expected more deviation. What is also > interesting is that there is no real clear majority. Typically, I like > to see a 2/3 vote to feel comfortable that the change is widely > accepted, but that is not the case at this time. > > > > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> > > wrote: > > > > ZF Coding Standards are based on PEAR's CS. That standard was developed > > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 > > had no concept of visibility in its object model; to provide some > > pseudo-visibility, PEAR CS mandated that members considered non-public > > should be prefixed with an underscore. > > > > With the advent of PHP 5, PHP's object model received visibility > > operators in the form of private, protected, and public. Applying PEAR > > CS to PHP 5 code meant that if you marked a member as private or > > protected, you would also prefix with the underscore. Many have felt > > this is redundant, and also that it makes refactoring more difficult > > (changes in visibility often mean renaming the members). Proponents of > > the standard, however, argue that the leading underscore leads to easier > > maintenance of the code -- you know immediately what the visibility of > > the member you're dealing with is just by looking at it. > > > > PEAR2 has decided to eschew the underscore prefix: > > > > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# > > Underscore_prefix_on_private_.28protected.3F.29 > > > > Basically, this rule is no longer required (as it was in PEAR1), though > > developers may choose to use them. > > > > What is YOUR opinion? Should the underscore be dropped in ZF2? > > Please vote! > > > > http://is.gd/eeA6f > > > > Please do _not_ reply to this thread -- the arguments for and against > > are well known at this time -- we're simply trying to decide on whether > > or not to amend the coding standards for ZF2. > > > > Thanks! > > > > -- > > Matthew Weier O'Phinney > > Project Lead | [hidden email] > > Zend Framework | http://framework.zend.com/ > > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > > > -- > Matthew Weier O'Phinney > Project Lead | [hidden email] > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- Dev Lead for Xoops Engine Internet Application R&D @PerfectWorld |
|
BTW, I would like to let you know that the vote link is blocked in my
country in case you don't think votes from my country don't make difference. On Fri, Aug 13, 2010 at 11:11 PM, D. J. <[hidden email]> wrote: > I only for myself: > I was the first one replying your email of "General inclinations > regarding prefixing non-public members?" with "No underscore". > But I did not participate your poll for I really don't understand your > intention of creating a poll after you had that email and so many > people already responded. > > > On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney > <[hidden email]> wrote: >> >> -- Саша Стаменковић <[hidden email]> wrote >> (on Friday, 13 August 2010, 10:14 AM +0200): >> > Can you tell us current score? :) >> >> There are currently 381 responses: >> >> * 57% vote "Yes" (to remove the underscores) >> * 38% vote "No" (to retain underscores) >> * 4% vote "No opinion" >> >> What has been interesting is that the percentages have remained >> consistent from the outset -- I expected more deviation. What is also >> interesting is that there is no real clear majority. Typically, I like >> to see a 2/3 vote to feel comfortable that the change is widely >> accepted, but that is not the case at this time. >> >> >> > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> >> > wrote: >> > >> > ZF Coding Standards are based on PEAR's CS. That standard was developed >> > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 >> > had no concept of visibility in its object model; to provide some >> > pseudo-visibility, PEAR CS mandated that members considered non-public >> > should be prefixed with an underscore. >> > >> > With the advent of PHP 5, PHP's object model received visibility >> > operators in the form of private, protected, and public. Applying PEAR >> > CS to PHP 5 code meant that if you marked a member as private or >> > protected, you would also prefix with the underscore. Many have felt >> > this is redundant, and also that it makes refactoring more difficult >> > (changes in visibility often mean renaming the members). Proponents of >> > the standard, however, argue that the leading underscore leads to easier >> > maintenance of the code -- you know immediately what the visibility of >> > the member you're dealing with is just by looking at it. >> > >> > PEAR2 has decided to eschew the underscore prefix: >> > >> > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# >> > Underscore_prefix_on_private_.28protected.3F.29 >> > >> > Basically, this rule is no longer required (as it was in PEAR1), though >> > developers may choose to use them. >> > >> > What is YOUR opinion? Should the underscore be dropped in ZF2? >> > Please vote! >> > >> > http://is.gd/eeA6f >> > >> > Please do _not_ reply to this thread -- the arguments for and against >> > are well known at this time -- we're simply trying to decide on whether >> > or not to amend the coding standards for ZF2. >> > >> > Thanks! >> > >> > -- >> > Matthew Weier O'Phinney >> > Project Lead | [hidden email] >> > Zend Framework | http://framework.zend.com/ >> > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc >> > >> > >> >> -- >> Matthew Weier O'Phinney >> Project Lead | [hidden email] >> Zend Framework | http://framework.zend.com/ >> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > -- > Dev Lead for Xoops Engine > Internet Application R&D @PerfectWorld > -- Dev Lead for Xoops Engine Internet Application R&D @PerfectWorld |
|
In reply to this post by weierophinney
Presumably the poll was held was to gauge support among framework users and not just members of the contributor mailing list. That the poll is blocked in your country may be either the poll host or the URL shortener service. Doubt it was intentional! ;)
Paddy On 13 Aug 2010, at 16:11, "D. J." <[hidden email]> wrote: I only for myself: I was the first one replying your email of "General inclinations regarding prefixing non-public members?" with "No underscore". But I did not participate your poll for I really don't understand your intention of creating a poll after you had that email and so many people already responded. On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney <[hidden email]> wrote: -- Саша Стаменковић <[hidden email]> wrote (on Friday, 13 August 2010, 10:14 AM +0200): Can you tell us current score? :) There are currently 381 responses: * 57% vote "Yes" (to remove the underscores) * 38% vote "No" (to retain underscores) * 4% vote "No opinion" What has been interesting is that the percentages have remained consistent from the outset -- I expected more deviation. What is also interesting is that there is no real clear majority. Typically, I like to see a 2/3 vote to feel comfortable that the change is widely accepted, but that is not the case at this time. On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> wrote: ZF Coding Standards are based on PEAR's CS. That standard was developed first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 had no concept of visibility in its object model; to provide some pseudo-visibility, PEAR CS mandated that members considered non-public should be prefixed with an underscore. With the advent of PHP 5, PHP's object model received visibility operators in the form of private, protected, and public. Applying PEAR CS to PHP 5 code meant that if you marked a member as private or protected, you would also prefix with the underscore. Many have felt this is redundant, and also that it makes refactoring more difficult (changes in visibility often mean renaming the members). Proponents of the standard, however, argue that the leading underscore leads to easier maintenance of the code -- you know immediately what the visibility of the member you're dealing with is just by looking at it. PEAR2 has decided to eschew the underscore prefix: http://wiki.pear.php.net/index.php/MeetingMinutes20080824# Underscore_prefix_on_private_.28protected.3F.29 Basically, this rule is no longer required (as it was in PEAR1), though developers may choose to use them. What is YOUR opinion? Should the underscore be dropped in ZF2? Please vote! http://is.gd/eeA6f Please do _not_ reply to this thread -- the arguments for and against are well known at this time -- we're simply trying to decide on whether or not to amend the coding standards for ZF2. Thanks! -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- Dev Lead for Xoops Engine Internet Application R&D @PerfectWorld |
|
Googledocs is partially blocked.
Unfortunately, Googlesheets is among the blocked. On Fri, Aug 13, 2010 at 11:28 PM, Pádraic Brady <[hidden email]> wrote: > Presumably the poll was held was to gauge support among framework users and not just members of the contributor mailing list. That the poll is blocked in your country may be either the poll host or the URL shortener service. Doubt it was intentional! ;) > > Paddy > > On 13 Aug 2010, at 16:11, "D. J." <[hidden email]> wrote: > > I only for myself: > I was the first one replying your email of "General inclinations > regarding prefixing non-public members?" with "No underscore". > But I did not participate your poll for I really don't understand your > intention of creating a poll after you had that email and so many > people already responded. > > > On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney > <[hidden email]> wrote: > > -- Саша Стаменковић <[hidden email]> wrote > (on Friday, 13 August 2010, 10:14 AM +0200): > Can you tell us current score? :) > > There are currently 381 responses: > > * 57% vote "Yes" (to remove the underscores) > * 38% vote "No" (to retain underscores) > * 4% vote "No opinion" > > What has been interesting is that the percentages have remained > consistent from the outset -- I expected more deviation. What is also > interesting is that there is no real clear majority. Typically, I like > to see a 2/3 vote to feel comfortable that the change is widely > accepted, but that is not the case at this time. > > > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> > wrote: > > ZF Coding Standards are based on PEAR's CS. That standard was developed > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 > had no concept of visibility in its object model; to provide some > pseudo-visibility, PEAR CS mandated that members considered non-public > should be prefixed with an underscore. > > With the advent of PHP 5, PHP's object model received visibility > operators in the form of private, protected, and public. Applying PEAR > CS to PHP 5 code meant that if you marked a member as private or > protected, you would also prefix with the underscore. Many have felt > this is redundant, and also that it makes refactoring more difficult > (changes in visibility often mean renaming the members). Proponents of > the standard, however, argue that the leading underscore leads to easier > maintenance of the code -- you know immediately what the visibility of > the member you're dealing with is just by looking at it. > > PEAR2 has decided to eschew the underscore prefix: > > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# > Underscore_prefix_on_private_.28protected.3F.29 > > Basically, this rule is no longer required (as it was in PEAR1), though > developers may choose to use them. > > What is YOUR opinion? Should the underscore be dropped in ZF2? > Please vote! > > http://is.gd/eeA6f > > Please do _not_ reply to this thread -- the arguments for and against > are well known at this time -- we're simply trying to decide on whether > or not to amend the coding standards for ZF2. > > Thanks! > > -- > Matthew Weier O'Phinney > Project Lead | [hidden email] > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > -- > Matthew Weier O'Phinney > Project Lead | [hidden email] > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > -- > Dev Lead for Xoops Engine > Internet Application R&D @PerfectWorld > > -- Dev Lead for Xoops Engine Internet Application R&D @PerfectWorld |
|
Administrator
|
In reply to this post by xoops
-- D. J. <[hidden email]> wrote
(on Friday, 13 August 2010, 11:11 PM +0800): > I only for myself: > I was the first one replying your email of "General inclinations > regarding prefixing non-public members?" with "No underscore". > But I did not participate your poll for I really don't understand your > intention of creating a poll after you had that email and so many > people already responded. Because it's one thing to ask contributors, and another entirely to poll the general community. While this decision would primarily affect contributors, it also affects anyone who extends ZF classes, as well as those who adopt the ZF coding standards. As such, it's important to get a broader viewpoint. If you had feedback on the mailing list, I encourage you to also vote in the poll. > On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney > <[hidden email]> wrote: > > > > -- Саша Стаменковић <[hidden email]> wrote > > (on Friday, 13 August 2010, 10:14 AM +0200): > > > Can you tell us current score? :) > > > > There are currently 381 responses: > > > > * 57% vote "Yes" (to remove the underscores) > > * 38% vote "No" (to retain underscores) > > * 4% vote "No opinion" > > > > What has been interesting is that the percentages have remained > > consistent from the outset -- I expected more deviation. What is also > > interesting is that there is no real clear majority. Typically, I like > > to see a 2/3 vote to feel comfortable that the change is widely > > accepted, but that is not the case at this time. > > > > > > > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> > > > wrote: > > > > > > ZF Coding Standards are based on PEAR's CS. That standard was developed > > > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 > > > had no concept of visibility in its object model; to provide some > > > pseudo-visibility, PEAR CS mandated that members considered non-public > > > should be prefixed with an underscore. > > > > > > With the advent of PHP 5, PHP's object model received visibility > > > operators in the form of private, protected, and public. Applying PEAR > > > CS to PHP 5 code meant that if you marked a member as private or > > > protected, you would also prefix with the underscore. Many have felt > > > this is redundant, and also that it makes refactoring more difficult > > > (changes in visibility often mean renaming the members). Proponents of > > > the standard, however, argue that the leading underscore leads to easier > > > maintenance of the code -- you know immediately what the visibility of > > > the member you're dealing with is just by looking at it. > > > > > > PEAR2 has decided to eschew the underscore prefix: > > > > > > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# > > > Underscore_prefix_on_private_.28protected.3F.29 > > > > > > Basically, this rule is no longer required (as it was in PEAR1), though > > > developers may choose to use them. > > > > > > What is YOUR opinion? Should the underscore be dropped in ZF2? > > > Please vote! > > > > > > http://is.gd/eeA6f > > > > > > Please do _not_ reply to this thread -- the arguments for and against > > > are well known at this time -- we're simply trying to decide on whether > > > or not to amend the coding standards for ZF2. > > > > > > Thanks! > > > > > > -- > > > Matthew Weier O'Phinney > > > Project Lead | [hidden email] > > > Zend Framework | http://framework.zend.com/ > > > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > > > > > > > -- > > Matthew Weier O'Phinney > > Project Lead | [hidden email] > > Zend Framework | http://framework.zend.com/ > > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > -- > Dev Lead for Xoops Engine > Internet Application R&D @PerfectWorld > -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc |
|
Administrator
|
In reply to this post by xoops
-- D. J. <[hidden email]> wrote
(on Friday, 13 August 2010, 11:16 PM +0800): > BTW, I would like to let you know that the vote link is blocked in my > country in case you don't think votes from my country don't make > difference. Can you try going to the canonical URL, then: https://spreadsheets.google.com/viewform?formkey=dEZOTGpMdjhzZDlmZGNMZVF0WnFTV2c6MQ If you cannot reach that, let me know. > On Fri, Aug 13, 2010 at 11:11 PM, D. J. <[hidden email]> wrote: > > I only for myself: > > I was the first one replying your email of "General inclinations > > regarding prefixing non-public members?" with "No underscore". > > But I did not participate your poll for I really don't understand your > > intention of creating a poll after you had that email and so many > > people already responded. > > > > > > On Fri, Aug 13, 2010 at 8:45 PM, Matthew Weier O'Phinney > > <[hidden email]> wrote: > >> > >> -- Саша Стаменковић <[hidden email]> wrote > >> (on Friday, 13 August 2010, 10:14 AM +0200): > >> > Can you tell us current score? :) > >> > >> There are currently 381 responses: > >> > >> * 57% vote "Yes" (to remove the underscores) > >> * 38% vote "No" (to retain underscores) > >> * 4% vote "No opinion" > >> > >> What has been interesting is that the percentages have remained > >> consistent from the outset -- I expected more deviation. What is also > >> interesting is that there is no real clear majority. Typically, I like > >> to see a 2/3 vote to feel comfortable that the change is widely > >> accepted, but that is not the case at this time. > >> > >> > >> > On Thu, Aug 12, 2010 at 6:05 PM, Matthew Weier O'Phinney <[hidden email]> > >> > wrote: > >> > > >> > ZF Coding Standards are based on PEAR's CS. That standard was developed > >> > first by Horde, then expanded by PEAR, during the PHP 4 lifecycle. PHP 4 > >> > had no concept of visibility in its object model; to provide some > >> > pseudo-visibility, PEAR CS mandated that members considered non-public > >> > should be prefixed with an underscore. > >> > > >> > With the advent of PHP 5, PHP's object model received visibility > >> > operators in the form of private, protected, and public. Applying PEAR > >> > CS to PHP 5 code meant that if you marked a member as private or > >> > protected, you would also prefix with the underscore. Many have felt > >> > this is redundant, and also that it makes refactoring more difficult > >> > (changes in visibility often mean renaming the members). Proponents of > >> > the standard, however, argue that the leading underscore leads to easier > >> > maintenance of the code -- you know immediately what the visibility of > >> > the member you're dealing with is just by looking at it. > >> > > >> > PEAR2 has decided to eschew the underscore prefix: > >> > > >> > http://wiki.pear.php.net/index.php/MeetingMinutes20080824# > >> > Underscore_prefix_on_private_.28protected.3F.29 > >> > > >> > Basically, this rule is no longer required (as it was in PEAR1), though > >> > developers may choose to use them. > >> > > >> > What is YOUR opinion? Should the underscore be dropped in ZF2? > >> > Please vote! > >> > > >> > http://is.gd/eeA6f > >> > > >> > Please do _not_ reply to this thread -- the arguments for and against > >> > are well known at this time -- we're simply trying to decide on whether > >> > or not to amend the coding standards for ZF2. > >> > > >> > Thanks! > >> > > >> > -- > >> > Matthew Weier O'Phinney > >> > Project Lead | [hidden email] > >> > Zend Framework | http://framework.zend.com/ > >> > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > >> > > >> > > >> > >> -- > >> Matthew Weier O'Phinney > >> Project Lead | [hidden email] > >> Zend Framework | http://framework.zend.com/ > >> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > > > > > > > -- > > Dev Lead for Xoops Engine > > Internet Application R&D @PerfectWorld > > > > > > -- > Dev Lead for Xoops Engine > Internet Application R&D @PerfectWorld > -- Matthew Weier O'Phinney Project Lead | [hidden email] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc |
|
> -----Oorspronkelijk bericht-----
> Van: Matthew Weier O'Phinney [mailto:[hidden email]] > Verzonden: vrijdag 13 augustus 2010 18:27 > Aan: [hidden email]; [hidden email] > Onderwerp: Re: [fw-general] Re: [zf-contributors] Poll: Should underscore > prefixing of non-public elements be dropped? > > -- D. J. <[hidden email]> wrote > (on Friday, 13 August 2010, 11:16 PM +0800): > > BTW, I would like to let you know that the vote link is blocked in my > > country in case you don't think votes from my country don't make > > difference. > > Can you try going to the canonical URL, then: > > > https://spreadsheets.google.com/viewform?formkey=dEZOTGpMdjhzZDlmZGNMZVF0WnFTV > 2c6MQ > > If you cannot reach that, let me know. Vote by mail ;) Vincent |
|
Hello,
Does elimination of underscores corresponds only to protected or private too? Because IMHO underscores should be removed from protected methods only. So private should have one underscore prefix. Such convention will allow to: 1. Absolutely clearly see that method is not a magic one (silly, but still good point) 2. Have private and protected method doing something with similar name but different scopes: class MyClass { private function _doSomething() { /* ... */ } protected function doSomething() { // protected doSomething mangling some results by default return strtolower($this->_doSomething()); } private function _doSomethingThatDataSensitive() { $data = $this->_doSomething(); } } But I mght be wrong and this will just make rules too complex. Anyway I vote for underscores removal :)) 2010/8/13 Vincent de Lau <[hidden email]>: >> -----Oorspronkelijk bericht----- >> Van: Matthew Weier O'Phinney [mailto:[hidden email]] >> Verzonden: vrijdag 13 augustus 2010 18:27 >> Aan: [hidden email]; [hidden email] >> Onderwerp: Re: [fw-general] Re: [zf-contributors] Poll: Should underscore >> prefixing of non-public elements be dropped? >> >> -- D. J. <[hidden email]> wrote >> (on Friday, 13 August 2010, 11:16 PM +0800): >> > BTW, I would like to let you know that the vote link is blocked in my >> > country in case you don't think votes from my country don't make >> > difference. >> >> Can you try going to the canonical URL, then: >> >> >> https://spreadsheets.google.com/viewform?formkey=dEZOTGpMdjhzZDlmZGNMZVF0WnFTV >> 2c6MQ >> >> If you cannot reach that, let me know. > > Vote by mail ;) > > Vincent > > -- Sincerely yours, Aleksey V. Zapparov A.K.A. ixti FSF Member #7118 Mobile Phone: +34 617 179 344 Homepage: http://www.ixti.ru JID: [hidden email] *Origin: Happy Hacking! |
|
Hi,
Having methods with the same name but prefixed differently is a very bad idea. I cannot stress this enough. From such a nomenclature abuse rises confusion and bad design decisions. At any moment, if you feel this is necessary, you should reconsider how you organize your methods and how you build your class. Uncle Bob's SOLID principles are a good start.
NABN.
On Sun, Aug 15, 2010 at 7:25 AM, Aleksey Zapparov <[hidden email]> wrote: Hello, -- Nicolas A. Bérard-Nault ([hidden email]) |
|
On Aug 15, 2010, at 8:56 AM, Nicolas A. Bérard-Nault wrote: > Having methods with the same name but prefixed differently is a very > bad idea. Here's a list of all 153 cases in the ZF 1.10 tree where a method with the "_" prefix exists, and a method with the same name but without the prefix exists in the same class or in a superclass or subclass: Zend_Amf_Adobe_DbInspector::_connect() => ::connect() Zend_Amf_Server::_handle() => ::handle() Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() => ::bootstrap() Zend_Barcode_Object_Code25::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_Code39::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_Ean13::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_Ean8::_validateText() => Zend_Barcode_Object_ObjectAbstract::validateText() Zend_Barcode_Object_Error::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_ObjectAbstract::_checkParams() => ::checkParams() Zend_Barcode_Object_ObjectAbstract::_validateText() => ::validateText() Zend_Barcode_Object_ObjectAbstract::_validateText() => Zend_Barcode_Object_Error::validateText() Zend_Barcode_Object_ObjectAbstract::_validateText() => Zend_Barcode_Object_Identcode::validateText() Zend_Barcode_Object_Postnet::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_Royalmail::_checkParams() => Zend_Barcode_Object_ObjectAbstract::checkParams() Zend_Barcode_Object_Upce::_validateText() => Zend_Barcode_Object_ObjectAbstract::validateText() Zend_Barcode_Renderer_Image::_checkParams() => Zend_Barcode_Renderer_RendererAbstract::checkParams() Zend_Barcode_Renderer_Pdf::_checkParams() => Zend_Barcode_Renderer_RendererAbstract::checkParams() Zend_Barcode_Renderer_RendererAbstract::_checkParams() => ::checkParams() Zend_Barcode_Renderer_Svg::_checkParams() => Zend_Barcode_Renderer_RendererAbstract::checkParams() Zend_Cache_Backend_File::_clean() => ::clean() Zend_Cache_Backend_File::_getMetadatas() => ::getMetadatas() Zend_Cache_Backend_File::_remove() => ::remove() Zend_Cache_Backend_File::_test() => ::test() Zend_Cache_Backend_Sqlite::_clean() => ::clean() Zend_Cache_Backend_ZendPlatform::_clean() => ::clean() Zend_Cache_Backend_ZendPlatform::_remove() => ::remove() Zend_Cache_Core::_setOption() => ::setOption() Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_Class::setOption() Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_File::setOption() Zend_Cache_Frontend_Class::_makeId() => ::makeId() Zend_Cache_Frontend_Function::_makeId() => ::makeId() Zend_Config_Xml::_toArray() => Zend_Config::toArray() Zend_Controller_Action_Helper_ContextSwitch::_setCallbacks() => ::setCallbacks() Zend_Controller_Action_Helper_ContextSwitch::_setHeaders() => ::setHeaders() Zend_Controller_Action_Helper_ContextSwitch::_setSuffix() => ::setSuffix() Zend_Crypt_Hmac::_hash() => Zend_Crypt::hash() Zend_Date::_date() => Zend_Date_DateObject::date() Zend_Date_DateObject::_getTime() => Zend_Date::getTime() Zend_Db_Adapter_Abstract::_beginTransaction() => ::beginTransaction() Zend_Db_Adapter_Abstract::_commit() => ::commit() Zend_Db_Adapter_Abstract::_quote() => ::quote() Zend_Db_Adapter_Abstract::_quoteIdentifier() => ::quoteIdentifier() Zend_Db_Adapter_Abstract::_rollBack() => ::rollBack() Zend_Db_Adapter_Db2::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Db2::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Db2::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Db2::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Adapter_Mysqli::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Mysqli::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Mysqli::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Mysqli::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Adapter_Oracle::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Oracle::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Oracle::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Oracle::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Adapter_Pdo_Abstract::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Pdo_Abstract::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Pdo_Abstract::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Pdo_Abstract::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Adapter_Pdo_Mssql::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Pdo_Mssql::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Pdo_Mssql::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Adapter_Pdo_Oci::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Sqlsrv::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Db_Adapter_Sqlsrv::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Db_Adapter_Sqlsrv::_quote() => Zend_Db_Adapter_Abstract::quote() Zend_Db_Adapter_Sqlsrv::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_Db_Select::_join() => ::join() Zend_Db_Select::_where() => ::where() Zend_Db_Statement_Db2::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Db2::_execute() => Zend_Db_Statement::execute() Zend_Db_Statement_Mysqli::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Mysqli::_execute() => Zend_Db_Statement::execute() Zend_Db_Statement_Oracle::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Oracle::_execute() => Zend_Db_Statement::execute() Zend_Db_Statement_Pdo::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Pdo::_execute() => Zend_Db_Statement::execute() Zend_Db_Statement_Pdo_Ibm::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Sqlsrv::_bindParam() => Zend_Db_Statement::bindParam() Zend_Db_Statement_Sqlsrv::_execute() => Zend_Db_Statement::execute() Zend_Db_Table_Row_Abstract::_delete() => ::delete() Zend_Db_Table_Row_Abstract::_getTable() => ::getTable() Zend_Db_Table_Row_Abstract::_refresh() => ::refresh() Zend_Dojo_Form_Element_DijitMulti::_getMultiOptions() => ::getMultiOptions() Zend_Exception::_getPrevious() => Exception::getPrevious() Zend_Feed_Reader_Extension_Atom_Entry::_getAuthor() => ::getAuthor() Zend_Feed_Reader_Extension_Atom_Feed::_getAuthor() => ::getAuthor() Zend_Filter_Inflector::_getRule() => ::getRule() Zend_Filter_Input::_process() => ::process() Zend_Form::_getDecorator() => ::getDecorator() Zend_Form::_getErrorMessages() => ::getErrorMessages() Zend_Form::_setElementsBelongTo() => ::setElementsBelongTo() Zend_Form_DisplayGroup::_getDecorator() => ::getDecorator() Zend_Form_Element::_getDecorator() => ::getDecorator() Zend_Form_Element::_getErrorMessages() => ::getErrorMessages() Zend_Form_Element_File::_getErrorMessages() => Zend_Form_Element::getErrorMessages() Zend_Form_Element_Multi::_getMultiOptions() => ::getMultiOptions() Zend_Json_Server::_handle() => ::handle() Zend_Ldap_Ldif_Encoder::_decode() => ::decode() Zend_Ldap_Ldif_Encoder::_encode() => ::encode() Zend_Ldap_Node::_getDn() => Zend_Ldap_Node_Abstract::getDn() Zend_Ldap_Node::_setAttribute() => ::setAttribute() Zend_Ldap_Node::_setDateTimeAttribute() => ::setDateTimeAttribute() Zend_Ldap_Node_Abstract::_getDn() => ::getDn() Zend_Loader_Autoloader::_autoload() => ::autoload() Zend_Log_Writer_Abstract::_write() => ::write() Zend_Log_Writer_Db::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Firebug::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Mail::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Mock::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Null::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Stream::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_Syslog::_write() => Zend_Log_Writer_Abstract::write() Zend_Log_Writer_ZendMonitor::_write() => ::write() Zend_Mail_Protocol_Abstract::_connect() => ::connect() Zend_Mail_Protocol_Abstract::_connect() => Zend_Mail_Protocol_Smtp::connect() Zend_Mail_Protocol_Abstract::_disconnect() => Zend_Mail_Protocol_Smtp::disconnect() Zend_Markup_Renderer_RendererAbstract::_render() => ::render() Zend_Memory_Manager::_create() => ::create() Zend_Mime::_encodeQuotedPrintable() => ::encodeQuotedPrintable() Zend_Search_Lucene_Search_Query::_highlightMatches() => ::highlightMatches() Zend_Search_Lucene_Search_Query_Boolean::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Empty::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Fuzzy::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Insignificant::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_MultiTerm::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Phrase::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Preprocessing_Fuzzy ::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Preprocessing_Phrase ::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Preprocessing_Term ::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Range::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Term::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Search_Lucene_Search_Query_Wildcard::_highlightMatches() => Zend_Search_Lucene_Search_Query::highlightMatches() Zend_Session_Abstract::_namespaceGet() => Zend_Session::namespaceGet() Zend_Session_Abstract::_namespaceIsset() => Zend_Session::namespaceIsset() Zend_Session_Abstract::_namespaceUnset() => Zend_Session::namespaceUnset() Zend_Session_SaveHandler_DbTable::_getLifetime() => ::getLifetime() Zend_Test_DbAdapter::_beginTransaction() => Zend_Db_Adapter_Abstract::beginTransaction() Zend_Test_DbAdapter::_commit() => Zend_Db_Adapter_Abstract::commit() Zend_Test_DbAdapter::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() Zend_TimeSync::_addServer() => ::addServer() Zend_Tool_Framework_Provider_Signature::_process() => ::process() Zend_View_Helper_Navigation_Menu::_renderMenu() => ::renderMenu() Zend_XmlRpc_Generator_DomDocument::_closeElement() => Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() Zend_XmlRpc_Generator_DomDocument::_openElement() => Zend_XmlRpc_Generator_GeneratorAbstract::openElement() Zend_XmlRpc_Generator_GeneratorAbstract::_closeElement() => ::closeElement() Zend_XmlRpc_Generator_GeneratorAbstract::_openElement() => ::openElement() Zend_XmlRpc_Generator_XmlWriter::_closeElement() => Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() Zend_XmlRpc_Generator_XmlWriter::_openElement() => Zend_XmlRpc_Generator_GeneratorAbstract::openElement() Zend_XmlRpc_Server::_handle() => ::handle() Zend_XmlRpc_Value_Array::_generateXml() => Zend_XmlRpc_Value::generateXml() Zend_XmlRpc_Value_Scalar::_generateXml() => Zend_XmlRpc_Value::generateXml() Zend_XmlRpc_Value_Struct::_generateXML() => Zend_XmlRpc_Value::generateXml() Also here are cases of magic methods, where a method exists of the same name without the prefix in the class or a superclass or subclass: Zend_Config::__get() => ::get() Zend_Controller_Request_Http::__get() => ::get() Zend_Navigation_Page::__get() => ::get() Zend_Tool_Framework_Client_Config::__get() => ::get() Zend_Controller_Request_Http::__set() => ::set() Zend_Navigation_Page::__set() => ::set() Zend_View_Helper_Placeholder_Container_Standalone::__set() => Zend_View_Helper_HeadLink::set() Zend_View_Helper_Placeholder_Container_Standalone::__set() => Zend_View_Helper_HeadMeta::set() Zend_View_Helper_Placeholder_Container_Standalone::__set() => Zend_View_Helper_HeadScript::set() Zend_View_Helper_Placeholder_Container_Standalone::__set() => Zend_View_Helper_HeadStyle::set() Zend_Console_Getopt::__toString() => ::toString() Zend_Crypt_Rsa_Key::__toString() => ::toString() Zend_Currency::__toString() => ::toString() Zend_Date::__toString() => ::toString() Zend_Ldap_Dn::__toString() => ::toString() Zend_Ldap_Filter_Abstract::__toString() => ::toString() Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_Logical::toString() Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_Mask::toString() Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_Not::toString() Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_String::toString() Zend_Ldap_Node_Abstract::__toString() => ::toString() Zend_Locale::__toString() => ::toString() Zend_Measure_Abstract::__toString() => ::toString() Zend_Oauth_Token::__toString() => ::toString() Zend_View_Helper_Cycle::__toString() => ::toString() Zend_View_Helper_Placeholder_Container_Abstract::__toString() => ::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => ::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => Zend_View_Helper_HeadLink::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => Zend_View_Helper_HeadMeta::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => Zend_View_Helper_HeadScript::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => Zend_View_Helper_HeadStyle::toString() Zend_View_Helper_Placeholder_Container_Standalone::__toString() => Zend_View_Helper_HeadTitle::toString() I can supply the script I used to create this list if anyone is interested. Regards, Bill Karwin |
|
This also includes for example __set (double underscore used exclusively
for magic methods) which IMHO is not a problem. Providing of course, that we do not define non-magic methods with double-underscore prefix and do not expect users to call these methods directly. This should be a clear coding standards guideline, if it isn't. Shahar. On 16/8/10 7:14 AM, Bill Karwin wrote: > > On Aug 15, 2010, at 8:56 AM, Nicolas A. Bérard-Nault wrote: > >> Having methods with the same name but prefixed differently is a very >> bad idea. > > Here's a list of all 153 cases in the ZF 1.10 tree where a method with > the "_" prefix exists, and a method with the same name but without the > prefix exists in the same class or in a superclass or subclass: > > Zend_Amf_Adobe_DbInspector::_connect() => ::connect() > Zend_Amf_Server::_handle() => ::handle() > Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() > => ::bootstrap() > Zend_Barcode_Object_Code25::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Code39::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean13::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean8::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Object_Error::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_ObjectAbstract::_checkParams() => ::checkParams() > Zend_Barcode_Object_ObjectAbstract::_validateText() => ::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Error::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Identcode::validateText() > Zend_Barcode_Object_Postnet::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Royalmail::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Upce::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Renderer_Image::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_Pdf::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_RendererAbstract::_checkParams() > => ::checkParams() > Zend_Barcode_Renderer_Svg::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Cache_Backend_File::_clean() => ::clean() > Zend_Cache_Backend_File::_getMetadatas() => ::getMetadatas() > Zend_Cache_Backend_File::_remove() => ::remove() > Zend_Cache_Backend_File::_test() => ::test() > Zend_Cache_Backend_Sqlite::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_remove() => ::remove() > Zend_Cache_Core::_setOption() => ::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_Class::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_File::setOption() > Zend_Cache_Frontend_Class::_makeId() => ::makeId() > Zend_Cache_Frontend_Function::_makeId() => ::makeId() > Zend_Config_Xml::_toArray() => Zend_Config::toArray() > Zend_Controller_Action_Helper_ContextSwitch::_setCallbacks() > => ::setCallbacks() > Zend_Controller_Action_Helper_ContextSwitch::_setHeaders() > => ::setHeaders() > Zend_Controller_Action_Helper_ContextSwitch::_setSuffix() > => ::setSuffix() > Zend_Crypt_Hmac::_hash() => Zend_Crypt::hash() > Zend_Date::_date() => Zend_Date_DateObject::date() > Zend_Date_DateObject::_getTime() => Zend_Date::getTime() > Zend_Db_Adapter_Abstract::_beginTransaction() => ::beginTransaction() > Zend_Db_Adapter_Abstract::_commit() => ::commit() > Zend_Db_Adapter_Abstract::_quote() => ::quote() > Zend_Db_Adapter_Abstract::_quoteIdentifier() => ::quoteIdentifier() > Zend_Db_Adapter_Abstract::_rollBack() => ::rollBack() > Zend_Db_Adapter_Db2::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Db2::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Db2::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Db2::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Mysqli::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Mysqli::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Mysqli::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Mysqli::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Oracle::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Oracle::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Oracle::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Oracle::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Abstract::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Abstract::_commit() => > Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Abstract::_quote() => > Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Pdo_Abstract::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Mssql::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Mssql::_commit() => > Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Mssql::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Oci::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Sqlsrv::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Sqlsrv::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Select::_join() => ::join() > Zend_Db_Select::_where() => ::where() > Zend_Db_Statement_Db2::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Db2::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Mysqli::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Mysqli::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Oracle::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Oracle::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Pdo::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo_Ibm::_bindParam() => > Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_execute() => Zend_Db_Statement::execute() > Zend_Db_Table_Row_Abstract::_delete() => ::delete() > Zend_Db_Table_Row_Abstract::_getTable() => ::getTable() > Zend_Db_Table_Row_Abstract::_refresh() => ::refresh() > Zend_Dojo_Form_Element_DijitMulti::_getMultiOptions() > => ::getMultiOptions() > Zend_Exception::_getPrevious() => Exception::getPrevious() > Zend_Feed_Reader_Extension_Atom_Entry::_getAuthor() => ::getAuthor() > Zend_Feed_Reader_Extension_Atom_Feed::_getAuthor() => ::getAuthor() > Zend_Filter_Inflector::_getRule() => ::getRule() > Zend_Filter_Input::_process() => ::process() > Zend_Form::_getDecorator() => ::getDecorator() > Zend_Form::_getErrorMessages() => ::getErrorMessages() > Zend_Form::_setElementsBelongTo() => ::setElementsBelongTo() > Zend_Form_DisplayGroup::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getErrorMessages() => ::getErrorMessages() > Zend_Form_Element_File::_getErrorMessages() => > Zend_Form_Element::getErrorMessages() > Zend_Form_Element_Multi::_getMultiOptions() => ::getMultiOptions() > Zend_Json_Server::_handle() => ::handle() > Zend_Ldap_Ldif_Encoder::_decode() => ::decode() > Zend_Ldap_Ldif_Encoder::_encode() => ::encode() > Zend_Ldap_Node::_getDn() => Zend_Ldap_Node_Abstract::getDn() > Zend_Ldap_Node::_setAttribute() => ::setAttribute() > Zend_Ldap_Node::_setDateTimeAttribute() => ::setDateTimeAttribute() > Zend_Ldap_Node_Abstract::_getDn() => ::getDn() > Zend_Loader_Autoloader::_autoload() => ::autoload() > Zend_Log_Writer_Abstract::_write() => ::write() > Zend_Log_Writer_Db::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Firebug::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mail::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mock::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Null::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Stream::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Syslog::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_ZendMonitor::_write() => ::write() > Zend_Mail_Protocol_Abstract::_connect() => ::connect() > Zend_Mail_Protocol_Abstract::_connect() => > Zend_Mail_Protocol_Smtp::connect() > Zend_Mail_Protocol_Abstract::_disconnect() => > Zend_Mail_Protocol_Smtp::disconnect() > Zend_Markup_Renderer_RendererAbstract::_render() => ::render() > Zend_Memory_Manager::_create() => ::create() > Zend_Mime::_encodeQuotedPrintable() => ::encodeQuotedPrintable() > Zend_Search_Lucene_Search_Query::_highlightMatches() > => ::highlightMatches() > Zend_Search_Lucene_Search_Query_Boolean::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Empty::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Fuzzy::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Insignificant::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_MultiTerm::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Phrase::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Fuzzy > ::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Phrase > ::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Term > ::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Range::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Term::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Wildcard::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Session_Abstract::_namespaceGet() => Zend_Session::namespaceGet() > Zend_Session_Abstract::_namespaceIsset() => > Zend_Session::namespaceIsset() > Zend_Session_Abstract::_namespaceUnset() => > Zend_Session::namespaceUnset() > Zend_Session_SaveHandler_DbTable::_getLifetime() => ::getLifetime() > Zend_Test_DbAdapter::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Test_DbAdapter::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Test_DbAdapter::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_TimeSync::_addServer() => ::addServer() > Zend_Tool_Framework_Provider_Signature::_process() => ::process() > Zend_View_Helper_Navigation_Menu::_renderMenu() => ::renderMenu() > Zend_XmlRpc_Generator_DomDocument::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_DomDocument::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_closeElement() > => ::closeElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_openElement() > => ::openElement() > Zend_XmlRpc_Generator_XmlWriter::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_XmlWriter::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Server::_handle() => ::handle() > Zend_XmlRpc_Value_Array::_generateXml() => > Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Scalar::_generateXml() => > Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Struct::_generateXML() => > Zend_XmlRpc_Value::generateXml() > > Also here are cases of magic methods, where a method exists of the > same name without the prefix in the class or a superclass or subclass: > > Zend_Config::__get() => ::get() > Zend_Controller_Request_Http::__get() => ::get() > Zend_Navigation_Page::__get() => ::get() > Zend_Tool_Framework_Client_Config::__get() => ::get() > > Zend_Controller_Request_Http::__set() => ::set() > Zend_Navigation_Page::__set() => ::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadLink::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadMeta::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadScript::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadStyle::set() > > Zend_Console_Getopt::__toString() => ::toString() > Zend_Crypt_Rsa_Key::__toString() => ::toString() > Zend_Currency::__toString() => ::toString() > Zend_Date::__toString() => ::toString() > Zend_Ldap_Dn::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Logical::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Mask::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Not::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_String::toString() > Zend_Ldap_Node_Abstract::__toString() => ::toString() > Zend_Locale::__toString() => ::toString() > Zend_Measure_Abstract::__toString() => ::toString() > Zend_Oauth_Token::__toString() => ::toString() > Zend_View_Helper_Cycle::__toString() => ::toString() > Zend_View_Helper_Placeholder_Container_Abstract::__toString() > => ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() > => ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadLink::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadMeta::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadScript::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadStyle::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadTitle::toString() > > I can supply the script I used to create this list if anyone is > interested. > > Regards, > Bill Karwin -- Shahar Evron <[hidden email]> Product Manager Zend Technologies |
|
In reply to this post by BillKarwin
Fortunately, ZF 2.0 refactoring is around the corner.
On Mon, Aug 16, 2010 at 12:14 AM, Bill Karwin <[hidden email]> wrote:
-- Nicolas A. Bérard-Nault ([hidden email]) |
|
In reply to this post by BillKarwin
I think using the _ prefix helps on quicker identifying public vs
non-public so i am for keeping them. Cristian > > On Aug 15, 2010, at 8:56 AM, Nicolas A. Bérard-Nault wrote: > >> Having methods with the same name but prefixed differently is a very >> bad idea. > > Here's a list of all 153 cases in the ZF 1.10 tree where a method with > the "_" prefix exists, and a method with the same name but without the > prefix exists in the same class or in a superclass or subclass: > > Zend_Amf_Adobe_DbInspector::_connect() => ::connect() > Zend_Amf_Server::_handle() => ::handle() > Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() => > ::bootstrap() > Zend_Barcode_Object_Code25::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Code39::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean13::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean8::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Object_Error::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_ObjectAbstract::_checkParams() => ::checkParams() > Zend_Barcode_Object_ObjectAbstract::_validateText() => ::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Error::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Identcode::validateText() > Zend_Barcode_Object_Postnet::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Royalmail::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Upce::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Renderer_Image::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_Pdf::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_RendererAbstract::_checkParams() => ::checkParams() > Zend_Barcode_Renderer_Svg::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Cache_Backend_File::_clean() => ::clean() > Zend_Cache_Backend_File::_getMetadatas() => ::getMetadatas() > Zend_Cache_Backend_File::_remove() => ::remove() > Zend_Cache_Backend_File::_test() => ::test() > Zend_Cache_Backend_Sqlite::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_remove() => ::remove() > Zend_Cache_Core::_setOption() => ::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_Class::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_File::setOption() > Zend_Cache_Frontend_Class::_makeId() => ::makeId() > Zend_Cache_Frontend_Function::_makeId() => ::makeId() > Zend_Config_Xml::_toArray() => Zend_Config::toArray() > Zend_Controller_Action_Helper_ContextSwitch::_setCallbacks() => > ::setCallbacks() > Zend_Controller_Action_Helper_ContextSwitch::_setHeaders() => > ::setHeaders() > Zend_Controller_Action_Helper_ContextSwitch::_setSuffix() => > ::setSuffix() > Zend_Crypt_Hmac::_hash() => Zend_Crypt::hash() > Zend_Date::_date() => Zend_Date_DateObject::date() > Zend_Date_DateObject::_getTime() => Zend_Date::getTime() > Zend_Db_Adapter_Abstract::_beginTransaction() => ::beginTransaction() > Zend_Db_Adapter_Abstract::_commit() => ::commit() > Zend_Db_Adapter_Abstract::_quote() => ::quote() > Zend_Db_Adapter_Abstract::_quoteIdentifier() => ::quoteIdentifier() > Zend_Db_Adapter_Abstract::_rollBack() => ::rollBack() > Zend_Db_Adapter_Db2::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Db2::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Db2::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Db2::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Mysqli::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Mysqli::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Mysqli::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Mysqli::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Oracle::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Oracle::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Oracle::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Oracle::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Abstract::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Abstract::_commit() => > Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Abstract::_quote() => > Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Pdo_Abstract::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Mssql::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Mssql::_commit() => > Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Mssql::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Oci::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Sqlsrv::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Sqlsrv::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Select::_join() => ::join() > Zend_Db_Select::_where() => ::where() > Zend_Db_Statement_Db2::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Db2::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Mysqli::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Mysqli::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Oracle::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Oracle::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Pdo::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo_Ibm::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_execute() => Zend_Db_Statement::execute() > Zend_Db_Table_Row_Abstract::_delete() => ::delete() > Zend_Db_Table_Row_Abstract::_getTable() => ::getTable() > Zend_Db_Table_Row_Abstract::_refresh() => ::refresh() > Zend_Dojo_Form_Element_DijitMulti::_getMultiOptions() => > ::getMultiOptions() > Zend_Exception::_getPrevious() => Exception::getPrevious() > Zend_Feed_Reader_Extension_Atom_Entry::_getAuthor() => ::getAuthor() > Zend_Feed_Reader_Extension_Atom_Feed::_getAuthor() => ::getAuthor() > Zend_Filter_Inflector::_getRule() => ::getRule() > Zend_Filter_Input::_process() => ::process() > Zend_Form::_getDecorator() => ::getDecorator() > Zend_Form::_getErrorMessages() => ::getErrorMessages() > Zend_Form::_setElementsBelongTo() => ::setElementsBelongTo() > Zend_Form_DisplayGroup::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getErrorMessages() => ::getErrorMessages() > Zend_Form_Element_File::_getErrorMessages() => > Zend_Form_Element::getErrorMessages() > Zend_Form_Element_Multi::_getMultiOptions() => ::getMultiOptions() > Zend_Json_Server::_handle() => ::handle() > Zend_Ldap_Ldif_Encoder::_decode() => ::decode() > Zend_Ldap_Ldif_Encoder::_encode() => ::encode() > Zend_Ldap_Node::_getDn() => Zend_Ldap_Node_Abstract::getDn() > Zend_Ldap_Node::_setAttribute() => ::setAttribute() > Zend_Ldap_Node::_setDateTimeAttribute() => ::setDateTimeAttribute() > Zend_Ldap_Node_Abstract::_getDn() => ::getDn() > Zend_Loader_Autoloader::_autoload() => ::autoload() > Zend_Log_Writer_Abstract::_write() => ::write() > Zend_Log_Writer_Db::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Firebug::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mail::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mock::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Null::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Stream::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Syslog::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_ZendMonitor::_write() => ::write() > Zend_Mail_Protocol_Abstract::_connect() => ::connect() > Zend_Mail_Protocol_Abstract::_connect() => > Zend_Mail_Protocol_Smtp::connect() > Zend_Mail_Protocol_Abstract::_disconnect() => > Zend_Mail_Protocol_Smtp::disconnect() > Zend_Markup_Renderer_RendererAbstract::_render() => ::render() > Zend_Memory_Manager::_create() => ::create() > Zend_Mime::_encodeQuotedPrintable() => ::encodeQuotedPrintable() > Zend_Search_Lucene_Search_Query::_highlightMatches() => > ::highlightMatches() > Zend_Search_Lucene_Search_Query_Boolean::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Empty::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Fuzzy::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Insignificant::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_MultiTerm::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Phrase::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Fuzzy::_highlightMatches() > => Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Phrase::_highlightMatches() > => Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Term::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Range::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Term::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Wildcard::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Session_Abstract::_namespaceGet() => Zend_Session::namespaceGet() > Zend_Session_Abstract::_namespaceIsset() => > Zend_Session::namespaceIsset() > Zend_Session_Abstract::_namespaceUnset() => > Zend_Session::namespaceUnset() > Zend_Session_SaveHandler_DbTable::_getLifetime() => ::getLifetime() > Zend_Test_DbAdapter::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Test_DbAdapter::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Test_DbAdapter::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_TimeSync::_addServer() => ::addServer() > Zend_Tool_Framework_Provider_Signature::_process() => ::process() > Zend_View_Helper_Navigation_Menu::_renderMenu() => ::renderMenu() > Zend_XmlRpc_Generator_DomDocument::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_DomDocument::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_closeElement() => > ::closeElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_openElement() => > ::openElement() > Zend_XmlRpc_Generator_XmlWriter::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_XmlWriter::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Server::_handle() => ::handle() > Zend_XmlRpc_Value_Array::_generateXml() => > Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Scalar::_generateXml() => > Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Struct::_generateXML() => > Zend_XmlRpc_Value::generateXml() > > Also here are cases of magic methods, where a method exists of the > same name without the prefix in the class or a superclass or subclass: > > Zend_Config::__get() => ::get() > Zend_Controller_Request_Http::__get() => ::get() > Zend_Navigation_Page::__get() => ::get() > Zend_Tool_Framework_Client_Config::__get() => ::get() > > Zend_Controller_Request_Http::__set() => ::set() > Zend_Navigation_Page::__set() => ::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadLink::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadMeta::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadScript::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadStyle::set() > > Zend_Console_Getopt::__toString() => ::toString() > Zend_Crypt_Rsa_Key::__toString() => ::toString() > Zend_Currency::__toString() => ::toString() > Zend_Date::__toString() => ::toString() > Zend_Ldap_Dn::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Logical::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Mask::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Not::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_String::toString() > Zend_Ldap_Node_Abstract::__toString() => ::toString() > Zend_Locale::__toString() => ::toString() > Zend_Measure_Abstract::__toString() => ::toString() > Zend_Oauth_Token::__toString() => ::toString() > Zend_View_Helper_Cycle::__toString() => ::toString() > Zend_View_Helper_Placeholder_Container_Abstract::__toString() => > ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadLink::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadMeta::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadScript::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadStyle::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadTitle::toString() > > I can supply the script I used to create this list if anyone is > interested. > > Regards, > Bill Karwin |
|
How do you mean quicker? If you are using IDE you just look for appropriate color mark in outline view. If you are using editor, you are in same trouble with or without prefixes, manually looking through the code.
Regards, Saša Stamenković On Mon, Aug 16, 2010 at 2:58 PM, Cristian Bichis <[hidden email]> wrote: I think using the _ prefix helps on quicker identifying public vs non-public so i am for keeping them. |
|
In reply to this post by BillKarwin
Hello Bill
As a lot of people will most probably have to refactor their entire code base, I think it would be of great help to the community, if you publish your script. Even better, has someone written a script to rename underscored protected and private methods and properties to their non-underscored counterpart? Jonthan Maron On Mon, Aug 16, 2010 at 6:14 AM, Bill Karwin <[hidden email]> wrote: > > On Aug 15, 2010, at 8:56 AM, Nicolas A. Bérard-Nault wrote: > >> Having methods with the same name but prefixed differently is a very bad >> idea. > > Here's a list of all 153 cases in the ZF 1.10 tree where a method with the > "_" prefix exists, and a method with the same name but without the prefix > exists in the same class or in a superclass or subclass: > > Zend_Amf_Adobe_DbInspector::_connect() => ::connect() > Zend_Amf_Server::_handle() => ::handle() > Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() => ::bootstrap() > Zend_Barcode_Object_Code25::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Code39::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean13::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Ean8::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Object_Error::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_ObjectAbstract::_checkParams() => ::checkParams() > Zend_Barcode_Object_ObjectAbstract::_validateText() => ::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Error::validateText() > Zend_Barcode_Object_ObjectAbstract::_validateText() => > Zend_Barcode_Object_Identcode::validateText() > Zend_Barcode_Object_Postnet::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Royalmail::_checkParams() => > Zend_Barcode_Object_ObjectAbstract::checkParams() > Zend_Barcode_Object_Upce::_validateText() => > Zend_Barcode_Object_ObjectAbstract::validateText() > Zend_Barcode_Renderer_Image::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_Pdf::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Barcode_Renderer_RendererAbstract::_checkParams() => ::checkParams() > Zend_Barcode_Renderer_Svg::_checkParams() => > Zend_Barcode_Renderer_RendererAbstract::checkParams() > Zend_Cache_Backend_File::_clean() => ::clean() > Zend_Cache_Backend_File::_getMetadatas() => ::getMetadatas() > Zend_Cache_Backend_File::_remove() => ::remove() > Zend_Cache_Backend_File::_test() => ::test() > Zend_Cache_Backend_Sqlite::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_clean() => ::clean() > Zend_Cache_Backend_ZendPlatform::_remove() => ::remove() > Zend_Cache_Core::_setOption() => ::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_Class::setOption() > Zend_Cache_Core::_setOption() => Zend_Cache_Frontend_File::setOption() > Zend_Cache_Frontend_Class::_makeId() => ::makeId() > Zend_Cache_Frontend_Function::_makeId() => ::makeId() > Zend_Config_Xml::_toArray() => Zend_Config::toArray() > Zend_Controller_Action_Helper_ContextSwitch::_setCallbacks() => > ::setCallbacks() > Zend_Controller_Action_Helper_ContextSwitch::_setHeaders() => ::setHeaders() > Zend_Controller_Action_Helper_ContextSwitch::_setSuffix() => ::setSuffix() > Zend_Crypt_Hmac::_hash() => Zend_Crypt::hash() > Zend_Date::_date() => Zend_Date_DateObject::date() > Zend_Date_DateObject::_getTime() => Zend_Date::getTime() > Zend_Db_Adapter_Abstract::_beginTransaction() => ::beginTransaction() > Zend_Db_Adapter_Abstract::_commit() => ::commit() > Zend_Db_Adapter_Abstract::_quote() => ::quote() > Zend_Db_Adapter_Abstract::_quoteIdentifier() => ::quoteIdentifier() > Zend_Db_Adapter_Abstract::_rollBack() => ::rollBack() > Zend_Db_Adapter_Db2::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Db2::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Db2::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Db2::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Mysqli::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Mysqli::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Mysqli::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Mysqli::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Oracle::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Oracle::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Oracle::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Oracle::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Abstract::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Abstract::_commit() => > Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Abstract::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Pdo_Abstract::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Mssql::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Pdo_Mssql::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Pdo_Mssql::_rollBack() => > Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Adapter_Pdo_Oci::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Db_Adapter_Sqlsrv::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Db_Adapter_Sqlsrv::_quote() => Zend_Db_Adapter_Abstract::quote() > Zend_Db_Adapter_Sqlsrv::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_Db_Select::_join() => ::join() > Zend_Db_Select::_where() => ::where() > Zend_Db_Statement_Db2::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Db2::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Mysqli::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Mysqli::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Oracle::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Oracle::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Pdo::_execute() => Zend_Db_Statement::execute() > Zend_Db_Statement_Pdo_Ibm::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_bindParam() => Zend_Db_Statement::bindParam() > Zend_Db_Statement_Sqlsrv::_execute() => Zend_Db_Statement::execute() > Zend_Db_Table_Row_Abstract::_delete() => ::delete() > Zend_Db_Table_Row_Abstract::_getTable() => ::getTable() > Zend_Db_Table_Row_Abstract::_refresh() => ::refresh() > Zend_Dojo_Form_Element_DijitMulti::_getMultiOptions() => ::getMultiOptions() > Zend_Exception::_getPrevious() => Exception::getPrevious() > Zend_Feed_Reader_Extension_Atom_Entry::_getAuthor() => ::getAuthor() > Zend_Feed_Reader_Extension_Atom_Feed::_getAuthor() => ::getAuthor() > Zend_Filter_Inflector::_getRule() => ::getRule() > Zend_Filter_Input::_process() => ::process() > Zend_Form::_getDecorator() => ::getDecorator() > Zend_Form::_getErrorMessages() => ::getErrorMessages() > Zend_Form::_setElementsBelongTo() => ::setElementsBelongTo() > Zend_Form_DisplayGroup::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getDecorator() => ::getDecorator() > Zend_Form_Element::_getErrorMessages() => ::getErrorMessages() > Zend_Form_Element_File::_getErrorMessages() => > Zend_Form_Element::getErrorMessages() > Zend_Form_Element_Multi::_getMultiOptions() => ::getMultiOptions() > Zend_Json_Server::_handle() => ::handle() > Zend_Ldap_Ldif_Encoder::_decode() => ::decode() > Zend_Ldap_Ldif_Encoder::_encode() => ::encode() > Zend_Ldap_Node::_getDn() => Zend_Ldap_Node_Abstract::getDn() > Zend_Ldap_Node::_setAttribute() => ::setAttribute() > Zend_Ldap_Node::_setDateTimeAttribute() => ::setDateTimeAttribute() > Zend_Ldap_Node_Abstract::_getDn() => ::getDn() > Zend_Loader_Autoloader::_autoload() => ::autoload() > Zend_Log_Writer_Abstract::_write() => ::write() > Zend_Log_Writer_Db::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Firebug::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mail::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Mock::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Null::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Stream::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_Syslog::_write() => Zend_Log_Writer_Abstract::write() > Zend_Log_Writer_ZendMonitor::_write() => ::write() > Zend_Mail_Protocol_Abstract::_connect() => ::connect() > Zend_Mail_Protocol_Abstract::_connect() => > Zend_Mail_Protocol_Smtp::connect() > Zend_Mail_Protocol_Abstract::_disconnect() => > Zend_Mail_Protocol_Smtp::disconnect() > Zend_Markup_Renderer_RendererAbstract::_render() => ::render() > Zend_Memory_Manager::_create() => ::create() > Zend_Mime::_encodeQuotedPrintable() => ::encodeQuotedPrintable() > Zend_Search_Lucene_Search_Query::_highlightMatches() => ::highlightMatches() > Zend_Search_Lucene_Search_Query_Boolean::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Empty::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Fuzzy::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Insignificant::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_MultiTerm::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Phrase::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Fuzzy::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Phrase::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Preprocessing_Term::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Range::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Term::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Search_Lucene_Search_Query_Wildcard::_highlightMatches() => > Zend_Search_Lucene_Search_Query::highlightMatches() > Zend_Session_Abstract::_namespaceGet() => Zend_Session::namespaceGet() > Zend_Session_Abstract::_namespaceIsset() => Zend_Session::namespaceIsset() > Zend_Session_Abstract::_namespaceUnset() => Zend_Session::namespaceUnset() > Zend_Session_SaveHandler_DbTable::_getLifetime() => ::getLifetime() > Zend_Test_DbAdapter::_beginTransaction() => > Zend_Db_Adapter_Abstract::beginTransaction() > Zend_Test_DbAdapter::_commit() => Zend_Db_Adapter_Abstract::commit() > Zend_Test_DbAdapter::_rollBack() => Zend_Db_Adapter_Abstract::rollBack() > Zend_TimeSync::_addServer() => ::addServer() > Zend_Tool_Framework_Provider_Signature::_process() => ::process() > Zend_View_Helper_Navigation_Menu::_renderMenu() => ::renderMenu() > Zend_XmlRpc_Generator_DomDocument::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_DomDocument::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_closeElement() => ::closeElement() > Zend_XmlRpc_Generator_GeneratorAbstract::_openElement() => ::openElement() > Zend_XmlRpc_Generator_XmlWriter::_closeElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::closeElement() > Zend_XmlRpc_Generator_XmlWriter::_openElement() => > Zend_XmlRpc_Generator_GeneratorAbstract::openElement() > Zend_XmlRpc_Server::_handle() => ::handle() > Zend_XmlRpc_Value_Array::_generateXml() => Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Scalar::_generateXml() => Zend_XmlRpc_Value::generateXml() > Zend_XmlRpc_Value_Struct::_generateXML() => Zend_XmlRpc_Value::generateXml() > > Also here are cases of magic methods, where a method exists of the same name > without the prefix in the class or a superclass or subclass: > > Zend_Config::__get() => ::get() > Zend_Controller_Request_Http::__get() => ::get() > Zend_Navigation_Page::__get() => ::get() > Zend_Tool_Framework_Client_Config::__get() => ::get() > > Zend_Controller_Request_Http::__set() => ::set() > Zend_Navigation_Page::__set() => ::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadLink::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadMeta::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadScript::set() > Zend_View_Helper_Placeholder_Container_Standalone::__set() => > Zend_View_Helper_HeadStyle::set() > > Zend_Console_Getopt::__toString() => ::toString() > Zend_Crypt_Rsa_Key::__toString() => ::toString() > Zend_Currency::__toString() => ::toString() > Zend_Date::__toString() => ::toString() > Zend_Ldap_Dn::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => ::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_Logical::toString() > Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_Mask::toString() > Zend_Ldap_Filter_Abstract::__toString() => Zend_Ldap_Filter_Not::toString() > Zend_Ldap_Filter_Abstract::__toString() => > Zend_Ldap_Filter_String::toString() > Zend_Ldap_Node_Abstract::__toString() => ::toString() > Zend_Locale::__toString() => ::toString() > Zend_Measure_Abstract::__toString() => ::toString() > Zend_Oauth_Token::__toString() => ::toString() > Zend_View_Helper_Cycle::__toString() => ::toString() > Zend_View_Helper_Placeholder_Container_Abstract::__toString() => > ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > ::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadLink::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadMeta::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadScript::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadStyle::toString() > Zend_View_Helper_Placeholder_Container_Standalone::__toString() => > Zend_View_Helper_HeadTitle::toString() > > I can supply the script I used to create this list if anyone is interested. > > Regards, > Bill Karwin |
|
In reply to this post by umpirsky
I mean when i am digging a specific class trying to understand how
things are working. Checking classes itself are the best
documentation for ZF.
Sometime i am using just a basic notepad++ for things like this (don't need entire editor because i don't actually edit them ;) )... Is a very small advantage, yes... How do you mean quicker? If you are using IDE you just look for appropriate color mark in outline view. If you are using editor, you are in same trouble with or without prefixes, manually looking through the code. |
| Powered by Nabble | Edit this page |
