[dev] Share names in kronolith not displayed: share_object->get('name') vs share_object->getName()

Ralf Lang lang at b1-systems.de
Sat Mar 31 16:59:16 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 31.03.2012 18:33, schrieb Michael J Rubinsky:
> 
> Quoting Ralf Lang <lang at b1-systems.de>:
> 
>> Hi,
>> 
>> in develop I spotted that share names are not displayed in most
>> places like kronolith.
>> 
>> I found out a lot of templates use
>> $some_share_object->get('name') while others use ->getName();
>> 
>> 'name' is not supported by the get method, at least not for the
>> sql driver.
>> 
>> What's the proper fix? Converting all templates/views to use
>> getName or to ass the get('name') case to the backend driver?
>> 
>> If it's the former I will fix any occurence at sight.
> 
> 
> It depends on what information you are trying to get; 
> $share_object->get('name') is the correct form to use when trying
> to get the share's *display* name (in the sql driver, this would
> map to the attribute_name field). If you are trying to get the
> share's internal share_name then you want
> $share_object->getName().

OK, then it's the latter. Currently, get('name') returns nothing from
the sql backend, probably because the set method saves it to the
share_name and the getter reads it from attribute_name.

- -- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk93N+MACgkQCs1dsHJ/X7BMPgCg36P5GN9RuUrSHorifHv24qjh
MQYAn3lgHH57y2j4Qd4t4hlBcyM1DUCS
=W06/
-----END PGP SIGNATURE-----


More information about the dev mailing list