[development] when we run out of characters

Adrian Rossouw adrian at bryght.com
Wed May 17 15:56:47 UTC 2006

On 17 May 2006, at 5:41 PM, Chris Johnson wrote:

> I don't know about making all of Drupal OO, but it seems straight- 
> forward and simple to make all the hook calls be method calls, and  
> each module be a class.  That solves our namespace problem once and  
> for all, and really makes very little structural change to Drupal.
I believe the issue we had was defining stuff in different namespaces  
from within the module.

Can one do :

function theme::myhook($var, $var, $var) {


In php ?

This might be less of an issue when we move to templates though, but  
there are still cases where we want to define
a function in another namespace.

Also, as Jaza said in his post, there's not really much of a gain to  
be had by this. as it's still not using constructors,
or any of the other things objects are useful for.

Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com

More information about the development mailing list