[development] $node namespace woes -- can we fix this in D6?

Earnie Boyd earnie at users.sourceforge.net
Thu May 31 20:58:01 UTC 2007


Quoting Derek Wright <drupal at dwwright.net>:

>
> On May 31, 2007, at 1:33 PM, Peter Wolanin wrote:
>
>> The patched version of book moves almost everything into the
>> $node->book_link array, and it wouldn't be too hard to have all the
>> data there (only 2 other fields).
>
> right, i saw that and appreciate it.  however, i'm talking about a  
> more drastic, core-wide purge of directly touching $node, not just  
> fixing up the collision with book and path.  perhaps that's too  
> ambitious for D6...
>

Something like an empty object of the module name created by an empty 
class named Namespace might suffice?

$node->myModule = new Namespace;
$node->myModule->myVariable = $foo;

Earnie


More information about the development mailing list