[dev] Permissions inheritance

Jan Schneider jan at horde.org
Mon Nov 1 11:53:11 PST 2004


Zitat von Richard Wallace <rwallace at thewallacepack.net>:

> Chuck Hagenbuch wrote:
>> Quoting Richard Wallace <rwallace at thewallacepack.net>:
>>
>>> Is there anyway to optimize this, maybe by loading all the parent
>>> permissions in one shot with a single call to the datatree?
>>
>>
>> You should be able to load everything with a datatree::get() call 
>> starting at
>> the root ('-1').
>>
>
> I had thought about that, but that would load all permissions for
> everything, wouldn't it?  I guess I was hoping more for something to do
> the reverse, that is, starting with a node load its attributes and it's
> parents, rather than starting with a node and loading all the children.

Something like DataTree::getParents()?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list