[dev] Referencing Horde_Shares from other entities

Jan Schneider jan at horde.org
Mon Oct 30 10:00:11 UTC 2017


Zitat von Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting Ralf Lang <lang at b1-systems.de>:
>
>> Hallo,
>>
>> for Horde_Shares, it seems like there are two distinct concept - the
>> share_name, which usually is not an actual name but a random string and
>> the share_id which seems to be a simple autoincrement key.
>>
>> It looks like in almost all cases, the preferred key to reference a
>> share is by share_name rather than share_id.
>>
>> Is it safe to ignore the share_id and always go for the share_name in
>> new code?
>
> IIRC, the id is needed only when considering parent/child hierarchies.

And for linking shares and users/groups. So yes, for the Share API,  
the share name is the reference key.

-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the dev mailing list