[Solar-talk] Method-Based Actions
Paul M Jones
pmjones at solarphp.com
Fri Jun 23 11:38:17 PDT 2006
On Jun 23, 2006, at 1:34 PM, Rob Allen wrote:
> Mike Naberezny wrote:
>> Paul M Jones wrote:
>>
>>> as are __construct()
>>> etc. But I think those are not so big a deal; all others are more
>>> likely to be protected, and thus underscore-prefixed.
>>>
>>>
>>
>> That's why I said "at least one underscore". Regardless, I was
>> unaware
>> of the display() and fetch() methods. Given the presence of these, I
>> agree with Travis and I think putting "action" first makes sense.
>>
>
> I disagree :)
>
> Personally I wouldn't bother with "action" at all as it's unnecessary.
I think it's necessary, otherwise display(), fetch(), apiVersion(),
locale(), and other public methods are presented as allowed actions.
> If you are going to have it, then I would put it at the end out of the
> way of the real function name!
So there's no consensus it sounds like. Time to think about flipping
a coin. ;-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list