Re: function -> action

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, August 3, 2007 1:38 am, Ralph Kutschera wrote:
>   I'm working on a project, where we distinguish between "functions"
> and
> "actions" in design, although in PHP both are implemented as
> functions.
> Is there a chance that PHP can use the word "action" as "function"?
>
> E.g.:
> public function doSomething() { .... }
> public action doSomethingElse() { ... }
>
> ... is actually the same but would help to see the design also in the
> code.

You might be able to do this with the Run-Kit extension...

It might be easier, however, to hack some kind of pre-processor that
would search for PCRE '\\s*action\\s*' and replace it with ' function
'

You'd have to pre-process generate your actual PHP files that get
executed, but the source you use would just have the 'action' in it.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux