Re: Referencing Horde_Shares from other entities
Jan Schneider <[email protected]> Mon, 30 Oct 2017 10:00:11 +0000
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Michael J Rubinsky <[email protected]>: > Quoting Ralf Lang <[email protected]>: > >> 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: [email protected]