[prev in list] [next in list] [prev in thread] [next in thread]
List: horde-dev
Subject: Re: [dev] Referencing Horde_Shares from other entities
From: Jan Schneider <jan () horde ! org>
Date: 2017-10-30 10:00:11
Message-ID: 20171030100012.Horde.tHnpdQkupi9qif8kr86DLJl () neo ! fritz ! box
[Download RAW message or body]
Zitat von Michael J Rubinsky <mrubinsk@horde.org>:
> Quoting Ralf Lang <lang@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/
--
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic